Username: 
Password: 
Restrict session to IP 

Memory Allcator - Shrink to fit

Global Rank: 248
Totalscore: 87961
Posts: 1662
Thanks: 1350
UpVotes: 906
Registered: 16y 225d




Last Seen: 8h 36m
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, kalungmas 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 797 times.