Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Optimize heap initialization #996
It is common to have stuff like
We could combine allocate calls (they should already be in order anyhow), and optimize the extra HEAP assignments there (postSets, that must take effect after the allocates) into an array. Optimal might be to precalculate it all and just load a binary blob, but it means another file loaded so some latency and asyncness. For small programs perhaps that would be suboptimal.