Open GoogleCodeExporter opened 9 years ago
Thank you for the speedup!
I think I tried this variant and it was horribly slow, but this should be
verified.
Please note that an KeyError is a common case, because zeros are not stored.
Please note that __getitem__/__setitem__ was optimized in no way, so there
should be
plenty room for improvement. :)
For instance I did not test whether mpmathify(mpf) could be made faster
(because it's
called called each time in __setitem__). It could use the same trick you
implemented
in r910.
Original comment by Vinzent.Steinberg@gmail.com
on 5 May 2009 at 1:50
Original issue reported on code.google.com by
fredrik....@gmail.com
on 4 May 2009 at 8:26