~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to _groupcompress_pyx.pyx

  • Committer: John Arbash Meinel
  • Date: 2009-03-03 21:07:21 UTC
  • mto: (0.17.31 trunk)
  • mto: This revision was merged to the branch mainline in revision 4280.
  • Revision ID: john@arbash-meinel.com-20090303210721-m25wehoeo3jxsz11
When adding new entries to the delta index, use memcpy
rather than copying them one by one.

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
        src.agg_offset = self._source_offset + unadded_bytes
140
140
        index = create_delta_index_from_delta(src, self._index)
141
141
        self._source_offset = src.agg_offset + src.size
142
 
        if index == NULL:
143
 
            raise RuntimeError('got back failure for adding: %r' % delta)
144
 
        else:
 
142
        if index != NULL:
145
143
            free_delta_index(self._index)
146
144
            self._index = index
147
145