Username: 
Password: 
Restrict session to IP 

Memory Allcator - Shrink to fit

Global Rank: 227
Totalscore: 94363
Posts: 1680
Thanks: 1358
UpVotes: 920
Registered: 16y 290d




Last Seen: 5d 23h
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 842 times.