3 ms·
I wonder if it would be feasible to rewrite the LRU cache (either fully or in part) in a way that does not require the GC to scan the entire cache.
by nemo1618 7y ago
I wonder if it would be feasible to rewrite the LRU cache (either fully or in part) in a way that does not require the GC to scan the entire cache.
- kerkeslager 7y agoYes, it's possible: that's generational garbage collection. But last I heard, Google decided writing a modern GC was too complicated. They're probably right, because Google doesn't need it. But for everyone else who decided to use a language designed to solve Google's fairly-unique problems as if it were a general-purpose language: that kind of sucks, doesn't it?
- terminaljunkid 7y agoThe fact seems to be that the go team is not so well funded as it seems. Go is not Google's language in the sense C# is MS' language or Java was Sun language.
- ssoroka 7y agoCheck out this post, that describes exactly that process. https://blog.gopheracademy.com/advent-2018/avoid-gc-overhead-large-heaps/ https://blog.gopheracademy.com/advent-2018/avoid-gc-overhead...