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.

Show HN: TtlMap: A Golang map in which entries expire after given a time period

1 pointsby jftugaover 1 year ago

2 comments

Ajnaszover 1 year ago
It might be useful for you that, in Go, maps do not shrink their memory usage when elements are deleted.<p>[1]<a href="https:&#x2F;&#x2F;vivasoftltd.com&#x2F;golang-mistakes-1-maps-and-memory-leaks&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;vivasoftltd.com&#x2F;golang-mistakes-1-maps-and-memory-le...</a><p>[2]<a href="https:&#x2F;&#x2F;medium.com&#x2F;@quicktechlearn&#x2F;maps-and-memory-leaks-in-golang-4638bdc952b9" rel="nofollow noreferrer">https:&#x2F;&#x2F;medium.com&#x2F;@quicktechlearn&#x2F;maps-and-memory-leaks-in-...</a>
user-over 1 year ago
What can this be used for?
评论 #38002535 未加载