~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 4287.1.1.

  • Committer: John Arbash Meinel
  • Date: 2009-04-14 19:43:49 UTC
  • mto: This revision was merged to the branch mainline in revision 4323.
  • Revision ID: john@arbash-meinel.com-20090414194349-0drrvwi7n9ju3e51
Remove the refcycle for _LRUNode.
We access the 'next' node via a direct pointer, but we access the
prev node via the dict. Accessing it directly should be faster
than accessing via an indirection, but doing it this way means that
we can have LRUNode's clean themselves up automatically when you
remove the reference to the cache itself, rather than needing
an explicit cleanup.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: