~bzr-pqm/bzr/2.3

« back to all changes in this revision

Viewing changes to bzrlib/smart/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-09-01 21:07:44 UTC
  • mfrom: (5653.3.1 2.3-get-parent-map-faster)
  • Revision ID: pqm@pqm.ubuntu.com-20110901210744-ac0spkg98x42y95k
(jameinel) Speed up ``Repository.get_parent_map`` by about 10%. (John A
 Meinel)

Show diffs side-by-side

added added

removed removed

Lines of Context:
236
236
                next_revs = set()
237
237
                break
238
238
            # don't query things we've already queried
239
 
            next_revs.difference_update(queried_revs)
 
239
            next_revs = next_revs.difference(queried_revs)
240
240
            first_loop_done = True
241
241
 
242
242
        # sorting trivially puts lexographically similar revision ids together.