3 ms·
This is a really cool idea. Just spitballing, but I suspect the issue would be that you now lose the objects locality when reading/following/writing references
by kjeetgill 7y ago
This is a really cool idea.
Just spitballing, but I suspect the issue would be that you now lose the objects locality when reading/following/writing references in conjunction with data. The GC algorithm will be crawling much less than your program will hopefully so it might be a net loss.
Just speculation!
- etaioinshrdlu 7y agoYes I agree. Perhaps the pointers should be stored twice in memory? With the updates to the compact graph being done asynchronously buffered by a shared lock-free queue? This is a mouthful and starting to sound like an obnoxious design.
- CoolGuySteve 7y agoPresumably the compact representation would be hot in the cache all the time due to frequent access but it would take up otherwise available cache space.