~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 4398.5.12.

  • Committer: John Arbash Meinel
  • Date: 2009-06-04 16:06:44 UTC
  • mto: This revision was merged to the branch mainline in revision 4410.
  • Revision ID: john@arbash-meinel.com-20090604160644-gtr5g8vsr9ufvvb3
One of the biggest wins to date, use PyList_Append directly.

Our primary data structure is a List, so optimizing this case helps a lot.
The main win is avoiding all of the generic function calls to append items
to the current list.

Note that if we required Pyrex 0.9.8+ we could use:
cdef list result
result = []
result.append()
and wouldn't have to define the PyList_Append functionality manually.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: