umbrella
umbrella copied to clipboard
[malloc][RFC/Discussion] use Float64 and not Uint32 for blocks pointers/state vars
Pros:
Will allow max heap size of 2^53−1
and not only 2^32−1
Cons: Additional 8 bytes overhead for each allocated block + few more constant bytes for the state values.
Middle ground: make it configurable?
Need to take into account: The effect of the pointers on the block alignment
Why not BigInt: Not supported on many platforms
Let me think about this... maybe this calls for a sub-class of MemPool
. Also, what kind of apps are you building that you need more than 4GB? Not in the browser, I'm guessing...
TBH: nothing yet. this is not a blocker for me for anything.
Making MemPool
more abstract and let impls handle it can be very elegant, also for other needs