Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
asmosoinio
on Nov 18, 2013
|
parent
|
context
|
favorite
| on:
Saving 9 GB of RAM with Python's __slots__
Useful tip. Anecdotally this helped me save 40% of memory on some data I need to store in memory for analysis: Used to be about 1KB per object, after adding __slots__ it came down to 590 bytes.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: