[issue14381] Intern certain integral floats for memory savings and performance
Mark Dickinson
report at bugs.python.org
Thu Apr 19 11:19:03 CEST 2012
Mark Dickinson <dickinsm at gmail.com> added the comment:
> Why do you think it isn't safe, Antoine?
It violates C's strict aliasing rules; Google for 'C strict aliasing' or 'C type punning' for more information. This isn't just a theoretical concern: gcc is known to make optimizations based on the assumption that strict aliasing isn't violated.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14381>
_______________________________________
More information about the Python-bugs-list
mailing list