~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

  • Committer: John Arbash Meinel
  • Date: 2009-08-16 17:22:08 UTC
  • mto: This revision was merged to the branch mainline in revision 4629.
  • Revision ID: john@arbash-meinel.com-20090816172208-2mh7z0uapy6y0gsv
Expose KnownGraph off of VersionedFiles
handle ghosts (needs tests, doesn't seem to effect performance)
list(tuple[1:]) is a couple ms slower than using my own loop.
Net effect is:
  time bzr log -n0 -r -10..-1
  real    0m2.559s

  time wbzr log -n0 -r -10..-1
  real    0m1.170s

  time bzr log -n1 -r -10..-1
  real    0m0.453s

So the overhead for the extra graph is down from 2.1s to 0.7s

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
        """Copy this versioned file to name on transport."""
229
229
        raise NotImplementedError(self.copy_to)
230
230
 
 
231
    def get_known_graph_ancestry(self, keys):
 
232
        """Get a KnownGraph instance with the ancestry of keys."""
 
233
        raise NotImplementedError(self.get_known_graph_ancestry)
 
234
 
231
235
    def get_record_stream(self, versions, ordering, include_delta_closure):
232
236
        """Get a stream of records for versions.
233
237