Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Memory usage optimization with chunks #569
The goal of this PR is to lower the usage of memory by certain objects. Using a profiler, I noticed that over 75% of the memory usage was made of
Since objects take more place than primitive types like ints, I tried caching these keys by having a simple permanent hash attributed to them (
I have also noticed that there are many
I am no optimization expert, so I am just analyzing graphs over time here. Please feel free to suggest anything or review my attempts if they feel inappropriate.
PS: I didn't really take the time to properly format/beautify my code, sorry in advance :)