Actually, I am trying to manage the memory. Segment-based solution is indeed convenient, but the merging of adjacent segments becomes an inconvenience for me now.
For example, I would like to reclaim only a 2M chunk, but the auto-merging of segments finally creates a huge segment of size 64M.. If I use the segment-based solution, I have to either reclaim this big chunk as whole, or not to reclaim it at all. Neither way is friendly. 在 2019年7月24日星期三 UTC+8上午4:44:07,Pat Farrell写道: > > > > On Tuesday, July 23, 2019 at 1:22:09 PM UTC-4, Zihan Yang wrote: >> >> I am trying to implement an LRU cache. >> > > Don't use an LRU, use a working set cache. Proven to be better back in > 1969 by Peter J Denning. > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/e67e7459-f995-4d14-80a6-d621b48b316d%40googlegroups.com.