You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How much does this really help with fragmentation? It would also be more efficient to go for an approach using CLZ to calculate the next power of two, if supported.
It might be worth considering only allocating strings of a capacity that is a power of two (including header) to reduce memory fragmentations:
A simple code snippet to round up to the next power of two:
I can make the code contribution if you'd like.
The text was updated successfully, but these errors were encountered: