Saving RAM in Python
2018-11-05 01:15:13.543005+00 by Dan Lyke 0 comments
Saving 9 GB of RAM with Python’s _slots_.
Interesting: Python normally keeps an objects attributes in a hash map, this forces it to use a less dynamic structure, but if you have lots of small objects it saves a lot of RAM.
Mostly, though, this North Bay Python has been a reminder that you should probably be starting that project in a real language, just in case it grows into something useful...