Replace __dict__ in individual.py with __slots__

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Replace __dict__ in individual.py with __slots__

keteage
Hi Jiba,

self.__dict__ in individual.py is consuming lots and lots of memory when processing millions of individuals.
I am proposing to replace __dict__ with __slots__ allowing the module to be more memory efficient.