This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients kristjan.jonsson, mark.dickinson, michael.foord, pitrou, serhiy.storchaka
Date 2012-03-22.14:59:46
SpamBayes Score 0.0009539129
Marked as misclassified No
Message-id <1332428386.72.0.528181835307.issue14381@psf.upfronthosting.co.za>
In-reply-to
Content
> Integers don't fall out of arithmetic that often, true.  But integral
> floats are incredibly common in tabular data.  In a game such as Eve
> Online,  configuration data contains a lot of 0.0, 1.0, -1.0 and so
> on.  This patch saved us many megabytes on the server.

Can't you do your own interning when reading configuration data? You can even do it in pure Python.

If CPython starts interning some integral floats, I think only {-1.0, -0.0, 0.0, 1.0} should apply. The rest is too application-specific.
History
Date User Action Args
2012-03-22 14:59:46pitrousetrecipients: + pitrou, mark.dickinson, kristjan.jonsson, michael.foord, serhiy.storchaka
2012-03-22 14:59:46pitrousetmessageid: <1332428386.72.0.528181835307.issue14381@psf.upfronthosting.co.za>
2012-03-22 14:59:46pitroulinkissue14381 messages
2012-03-22 14:59:46pitroucreate