Username: 
Password: 
Restrict session to IP 

Memory Allcator - Shrink to fit

Global Rank: 246
Totalscore: 88161
Posts: 1673
Thanks: 1356
UpVotes: 912
Registered: 16y 269d




Last Seen: 2h 46m
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 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 827 times.