This is an archive of the discontinued Mercurial Phabricator instance.

linelog: extract `len(self._program)` to a local function
ClosedPublic

Authored by quark on Aug 6 2018, 10:00 PM.

Details

Summary

This is a micro optimization prepared for following changes where
len(self._program) is used in a loop.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

quark created this revision.Aug 6 2018, 10:00 PM
quark updated this revision to Diff 10026.Aug 6 2018, 10:04 PM
indygreg accepted this revision.Aug 7 2018, 7:33 PM
This revision is now accepted and ready to land.Aug 7 2018, 7:33 PM
quark updated this revision to Diff 10066.Aug 7 2018, 8:22 PM
This revision was automatically updated to reflect the committed changes.