Flutterby™! : Saving RAM in Python

Next unread comment / Catchup all unread comments User Account Info | Logout | XML/Pilot/etc versions | Long version (with comments) | Weblog archives | Site Map | | Browse Topics

Saving RAM in Python

2018-11-05 02:15:13.543005+01 by Dan Lyke 0 comments

Saving 9 GB of RAM with Python’s _slots_[Wiki].

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...

[ related topics: Interactive Drama Law Monty Python California Culture Maps and Mapping Databases Gambling Python ]

comments in ascending chronological order (reverse):