mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 07:56:59 +00:00
[USETUP] Speed up DoFileCopy +24% (#5089)
Make STRING_COPYING cached. CORE-18838
This commit is contained in:
parent
6d2012ac3b
commit
13cf4c52f5
1 changed files with 5 additions and 2 deletions
|
@ -3650,6 +3650,8 @@ FileCopyCallback(PVOID Context,
|
||||||
}
|
}
|
||||||
else if (Notification == SPFILENOTIFY_STARTCOPY)
|
else if (Notification == SPFILENOTIFY_STARTCOPY)
|
||||||
{
|
{
|
||||||
|
static PCSTR s_pszCopying = NULL; /* Cached for speed */
|
||||||
|
|
||||||
/* Display copy message */
|
/* Display copy message */
|
||||||
ASSERT(Param2 == FILEOP_COPY);
|
ASSERT(Param2 == FILEOP_COPY);
|
||||||
|
|
||||||
|
@ -3658,8 +3660,9 @@ FileCopyCallback(PVOID Context,
|
||||||
if (DstFileName) ++DstFileName;
|
if (DstFileName) ++DstFileName;
|
||||||
else DstFileName = FilePathInfo->Target;
|
else DstFileName = FilePathInfo->Target;
|
||||||
|
|
||||||
CONSOLE_SetStatusText(MUIGetString(STRING_COPYING),
|
if (!s_pszCopying)
|
||||||
DstFileName);
|
s_pszCopying = MUIGetString(STRING_COPYING);
|
||||||
|
CONSOLE_SetStatusText(s_pszCopying, DstFileName);
|
||||||
#ifdef __REACTOS__ /* HACK */
|
#ifdef __REACTOS__ /* HACK */
|
||||||
DoWatchDestFileName(DstFileName);
|
DoWatchDestFileName(DstFileName);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue