Add Tile.__slots__, __getstate__(), __setstate__(), although it provides far less space savings than I've seen in the past. We still seem to be paying ~48B per Tile in save files; not worth hooking up the heap profiler to see if that's also the RAM footprint unless we're writing code with large maps or many persistent maps.
Add Tile.__slots__, __getstate__(), __setstate__(), although it provides far less space savings than I've seen in the past. We still seem to be paying ~48B per Tile in save files; not worth hooking up the heap profiler to see if that's also the RAM footprint unless we're writing code with large maps or many persistent maps.

Naburimannu/libtcodpy-tutorial