~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 4371.4.29.

  • Committer: John Arbash Meinel
  • Date: 2009-06-19 20:08:03 UTC
  • mto: This revision was merged to the branch mainline in revision 4466.
  • Revision ID: john@arbash-meinel.com-20090619200803-0s181hhkbo4sf9mh
Pre-allocating self._nodes turned out to be slower.
I guess it doesn't realloc very often, and save on dict lookups while it is small.
Also, you don't end up with the incref/decref to None, but I would imagine that is
a trivial amount of time.

I wish it was easier to define an allocator for Pyrex objects. (It is fairly easy
in the Python C api.)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: