Kristján Valur Jónsson <krist...@ccpgames.com> added the comment:

The -10..11 range was determined empirically.  As you see from the values,  
only -10 shows up as significant... In fact, just storing 0 to 5 would capture 
the bulk of the savings.
 
Right, I'll do some test with the hardcoded values you mentioned.
Btw, I don't think -0.0 is worth it, that value is a typical arithmetic result 
and not something you typically get from input data.

Also, while interning in python is certainly possible, perhaps it would make 
sense to implement such in c.  Perhaps in the math module, or perhaps  even the 
'intern' builtin can be extended for this purpose?  It could be documented to 
intern any immutable object that it sees fit to intern, leaving the details to 
the implementation.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14381>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to