You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(rename): cache fileExists results in PropagateLocalRename::start
PropagateLocalRename::start was calling FileSystem::fileExists up to
five times across the same three paths in a row. Each call is a
filesystem stat. Cache the three results into local bools and reuse
them.
Side benefit: the Q_ASSERT and the two qCDebug log lines now match
the bool values used in fileAlreadyMoved, eliminating the chance of
the assert and the log disagreeing if the filesystem state changes
mid-function.
Signed-off-by: Qoole <2862661+qoole@users.noreply.github.com>
0 commit comments