Searched hist:ab4fc43458c20bbd98cf360728f174728783b601 (Results 1 – 2 of 2) sorted by relevance
/haiku/src/system/kernel/fs/ |
H A D | EntryCache.h | ab4fc43458c20bbd98cf360728f174728783b601 Tue Sep 10 18:07:37 UTC 2024 Augustin Cavalier <waddlesplash@gmail.com> EntryCache: Cache the entry's hash value.
EntryCacheEntry was padded out to 40 bytes, so this doesn't increase its size (on 64-bit platforms).
Also increase entriesSize to actually be a power of 2.
This saves us a string comparison when the hashes don't match. It saved around ~1400 such string comparisons during a boot, and then rebuilding HaikuDepot, it saved around ~10,000 (both numbers after factoring in the hashes that compared equal but the directory values differed, as we skip the string comparisons in that case too.)
Time to compile HaikuDepot seems slightly improved, on average.
|
H A D | EntryCache.cpp | ab4fc43458c20bbd98cf360728f174728783b601 Tue Sep 10 18:07:37 UTC 2024 Augustin Cavalier <waddlesplash@gmail.com> EntryCache: Cache the entry's hash value.
EntryCacheEntry was padded out to 40 bytes, so this doesn't increase its size (on 64-bit platforms).
Also increase entriesSize to actually be a power of 2.
This saves us a string comparison when the hashes don't match. It saved around ~1400 such string comparisons during a boot, and then rebuilding HaikuDepot, it saved around ~10,000 (both numbers after factoring in the hashes that compared equal but the directory values differed, as we skip the string comparisons in that case too.)
Time to compile HaikuDepot seems slightly improved, on average.
|