Message156566
> 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. |
|
Date |
User |
Action |
Args |
2012-03-22 14:59:46 | pitrou | set | recipients:
+ pitrou, mark.dickinson, kristjan.jonsson, michael.foord, serhiy.storchaka |
2012-03-22 14:59:46 | pitrou | set | messageid: <1332428386.72.0.528181835307.issue14381@psf.upfronthosting.co.za> |
2012-03-22 14:59:46 | pitrou | link | issue14381 messages |
2012-03-22 14:59:46 | pitrou | create | |
|