[Python-Dev] Caching float(0.0)

skip at pobox.com skip at pobox.com
Tue Oct 3 02:50:44 CEST 2006

    Tim> This doesn't actually give us a very useful indication of potential
    Tim> memory savings. What I think would be more useful is tracking the
    Tim> maximum simultaneous count of each value i.e. what the maximum
    Tim> refcount would have been if they were shared.

Most definitely.  I just posted what I came up with in about two minutes.
I'll add some code to track the high water mark as well and report back.


More information about the Python-Dev mailing list