Username: 
Password: 
Restrict session to IP 

Memory Allcator - Shrink to fit

Global Rank: 252
Totalscore: 87267
Posts: 1635
Thanks: 1337
UpVotes: 886
Registered: 16y 43d




Last Seen: 18h 43m
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 625 times.