Evan Zhou
Evan Zhou
> @coocood Sorry to add confusion, I mean these values `cache := freecache.NewCache( 100 * 1024 * 1024)`, not sure why we do 100 * 1024 * 1024! I'm sorry...
@mmacheerpuppy Sure!
Thank you for the suggestion. But it breaks the API.
I think adding extra APIs or special case just for golint is not worth it. I don't feel like hacking for coding style. If I were to build a new...
Neat solution.
Can you provide more information about your Go version and OS? I can't reproduce this issue on maxOS, Go 1.7. Thank you.
Store many `interface{}` in memory will cause big GC impact. GC overhead is proportional to the number of long-lived objects.
@SmileEye You can read this blog https://blog.golang.org/ismmkeynote
Do you know any cache library have this optimization?
@thesilentg The `lowResClock` starts a goroutine and never exit, if cache are created and discarded too many times, there would be a lot of goroutines leaked. And `clock.now` needs atomic...