This is an archive of the discontinued Mercurial Phabricator instance.

rhg: do not try to open a nodemap for an inline index
ClosedPublic

Authored by aalekseyev on Oct 14 2021, 9:03 AM.

Details

Summary

This saves an [open] system call per file, which is a small saving, but
it showed up in the profile at large file counts (it accounted for 30ms
out of 400ms needed for catting 10000 files, on a ZFS filesystem on Linux,
so ~3us per syscall).

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

aalekseyev created this revision.Oct 14 2021, 9:03 AM
pulkit accepted this revision.Oct 14 2021, 2:40 PM
This revision is now accepted and ready to land.Oct 14 2021, 2:40 PM
This revision was automatically updated to reflect the committed changes.