hivemind icon indicating copy to clipboard operation
hivemind copied to clipboard

Use packrat for reducing memory footprint

Open Mirroar opened this issue 3 years ago • 1 comments

This mostly plays into #22. I've already started improving the memory footprint of room position serialization. In the end, we could save a lot more memory by switching to something like https://github.com/bencbartlett/screeps-packrat and use it across the codebase. That'll be a lot of work, and I'm not sure we can make everything backward compatible.

Mirroar avatar Apr 19 '21 20:04 Mirroar

Some parts have now been converted, like obstacle lists in room intel. This saves quire a bit of memory already. Another great target is probably the room planner's planned locations.

Mirroar avatar Jun 04 '21 08:06 Mirroar