Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
mercurial/revlog.py | ||
---|---|---|
189 | is there a reason to rename this to indexformatv0_unpack and not call it indexformatv0.unpack? If there is no particular reason, it feels to me that indexformatv0.unpack and indexformatv0.pack is more consistent with the use of indexformatv0.size. |
mercurial/revlog.py | ||
---|---|---|
189 | Preserve the micro-optimization that this line performs no attribute lookups, just a single global lookup. (It's probably measurable on CPython, though not on PyPy). |
Comment Actions
LGTM
Thanks for the explanation. Can we add this reasoning to the commit message maybe and clearly describe what the microoptimization is?
is there a reason to rename this to indexformatv0_unpack and not call it indexformatv0.unpack? If there is no particular reason, it feels to me that indexformatv0.unpack and indexformatv0.pack is more consistent with the use of indexformatv0.size.