Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: