~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to groupcompress.py

  • Committer: John Arbash Meinel
  • Date: 2009-02-28 04:43:47 UTC
  • mto: (0.23.23 groupcompress_rabin)
  • mto: This revision was merged to the branch mainline in revision 4280.
  • Revision ID: john@arbash-meinel.com-20090228044347-vjb5fzj5s9cd8a7c
Create a wrapper function, so that lsprof will properly attribute time spent.

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
        #      we could try a delta against whatever the last delta we
174
174
        #      computed, (the idea being we just computed the delta_index, so
175
175
        #      we re-use it here, and see if that is good enough, etc)
176
 
        delta_index = _groupcompress_c.DeltaIndex(source_text)
 
176
        delta_index = _groupcompress_c.make_delta_index(source_text)
177
177
        delta = delta_index.make_delta(target_text)
178
178
        if (delta is None
179
179
            or len(delta) > len(target_text) / 2):