TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Go and a not tiny amount of memory

19 pointsby relyioalmost 8 years ago

3 comments

henpaalmost 8 years ago
I wonder if libraries such as freecache[1] and bigcache[2] wouldn&#x27;t offer a better solution for this use case.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;coocood&#x2F;freecache" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;coocood&#x2F;freecache</a> [2] <a href="https:&#x2F;&#x2F;github.com&#x2F;allegro&#x2F;bigcache" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;allegro&#x2F;bigcache</a>
peterwwillisalmost 8 years ago
Every time I read one of these it&#x27;s like watching someone in college learn about databases, but it&#x27;s actually a company.
评论 #14428251 未加载
评论 #14428253 未加载
评论 #14428311 未加载
jzwinckalmost 8 years ago
So you use a GC and have occasional CPU usage spikes. You correctly identify the cause. You then use &quot;unsafe&quot; code to go behind the GC&#x27;s back and build some stuff which probably has crash bugs or worse, and by your analysis solves a problem which was not significant.<p>I shouldn&#x27;t be surprised. The red flag was flying as soon as IOP was used in singular form.<p>Input&#x2F;Output Operations Per.
评论 #14428319 未加载
评论 #14428307 未加载