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
{{ message }}
Repository navigation
Commit abdcbed
Browse filesBrowse the repository at this point in the historyBrowse files
Keep the symbols found in directories between runs, checked by stat
OptimizedDirectorySourceLocatorFactory had two ways of finding the symbols
of a directory. Without the turbo extension, or with workers that are not
forked, they were cached, and the cache was checked by hashing every file.
With the extension and forked workers, every file was scanned natively on
every run instead, because hashing cost about as much as the scan - 0.7s on
Drupal core, paid by every run that analyses at least one file.
There is one way now. The cache entry of a directory keeps each file's stat
signature next to its hash (see FileStatSignatures), and a file whose
signature matches is not even hashed. When the signature cannot vouch for
the file, the hash decides, as before. The arena records that shared the
file hashes and the symbol maps between workers that are not forked are
gone - the cache entry itself is still shared through the arena by
Cache::load().
The cache now also keeps the files that declare no symbols, which used to be
scanned again on every run.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GdwtgiEHwkF5BTz73jgHQQ
0 commit comments