Username: 
Password: 
Restrict session to IP 

Memory Allcator - Shrink to fit

Global Rank: 229
Totalscore: 93264
Posts: 1680
Thanks: 1358
UpVotes: 920
Registered: 16y 282d




Last Seen: 6h 27m
The User is Offline
Memory Allcator - Shrink to fit
Google/translate0Thank You!0Good Post!0Bad Post! link
I just had the idea of a memory allocator that adds `mshrink(pointer*, reallyNeededSize)` to the heap allocation scheme.

This reduces the memory allocated for the last object to the real needed size.
This might reduce memory footprint for e.g. ArrayList() in Java

Is this idea any good?

- giz
The geeks shall inherit the properties and methods of object earth.
tunelko, quangntenemy, TheHiveMind, Z, balicocat, Ge0, samuraiblanco, arraez, jcquinterov, hophuocthinh, alfamen2, burhanudinn123, Ben_Dover, stephanduran89, braddie0, SwolloW, dangarbri, csuquvq have subscribed to this thread and receive emails on new posts.
1 people are watching the thread at the moment.
This thread has been viewed 836 times.