HomePhabricator

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

Authored by quark.

Description

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

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

Differential Revision: https://phab.mercurial-scm.org/D4149

Details

Committed
quarkAug 7 2018, 8:17 PM
Differential Revision
D4149: linelog: extract `len(self._program)` to a local function
Parents
rHG1601afbb573c: perf: add a command to benchmark linelog edits
Branches
Unknown
Tags
Unknown