umbrella icon indicating copy to clipboard operation
umbrella copied to clipboard

[malloc][RFC/Discussion] use Float64 and not Uint32 for blocks pointers/state vars

Open Bnaya opened this issue 5 years ago • 3 comments

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

Bnaya avatar Jan 12 '20 22:01 Bnaya

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...

postspectacular avatar Jan 12 '20 23:01 postspectacular

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

Bnaya avatar Jan 12 '20 23:01 Bnaya