On Wed, Jul 24, 2019 at 7:16 AM Zihan Yang <whois.zihan.y...@gmail.com>
wrote:

>
> I tried to evaluate the performance with lru & without lru, the
> performance with a global lru is 10x slower than without lru at all.
>
>
This would make me step back a bit and revisit my initial plan. If a global
cache isn't helping, what evidence is there a thread-local cache would?
Said another way, the work you are caching must have a certain
computational overhead to it, which warrants a cache in the first place.

-- 
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/CAGrdgiXW63p660v1OX_tZAMOXxFJp6vzZk-%3DftrEiTWZhKCiaQ%40mail.gmail.com.

Reply via email to