
June 3, 2010
10:04 p.m.
On Thu, 3 Jun 2010 12:02:44 -0700 Philip Jenvey <pjenvey@underboss.org> wrote:
Using id() is a workaround but again, a potentially expensive one for platforms with moving GCs. Every object calling for an id() forces additional bookkeeping on their ends. This is only a better solution for CPython.
Well, CPython and all other implementations with a non-moving GC.
Whereas abstracting this out into an identitydict type gives all platforms the chance to provide their own optimized versions.
That's really premature optimization. Regards Antoine.