Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use packrat for reducing memory footprint #41

Open
Mirroar opened this issue Apr 19, 2021 · 1 comment
Open

Use packrat for reducing memory footprint #41

Mirroar opened this issue Apr 19, 2021 · 1 comment

Comments

@Mirroar
Copy link
Owner

Mirroar commented Apr 19, 2021

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
Copy link
Owner Author

Mirroar commented Jun 4, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant