|
|
|
|
|
by cracauer
2391 days ago
|
|
I am a friend of simple garbage collectors. Let initial placement be decided by running code. Let later placement be decided by the order in which the heap is scavenged. That is what e.g. re-unifies array-of-pointer target instances. You scavenge the array of pointers and in the default case you line up the instances the pointers point to beautifully one after another. Even if the initial allocation had interleaving other memory. In that case your code gets faster after GC than before the data is first GCed. |
|