HomePhabricator

hbisect: use a defaultdict to avoid large allocations for a large changelogs

Authored by dsp.

Description

hbisect: use a defaultdict to avoid large allocations for a large changelogs

We can avoid a SPACE(len(changelog)) allocation by using a defaultdict.

Test Plan:

python run-tests.py test-bisect*

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

Details