Hacker News new | comments | show | ask | jobs | submit login Show HN: Concurrency-safe file-backed element store in Go (github.com) 19 points by sebcat 1 day ago | 6 comments gophernaught 1 day ago I like it, though I think it's likely to create a lot of garbage, what with spawning a goroutine on each Put, I suppose that's probably not an issue for most programs. I find defer pretty expensive, I don't use them that liberally anymore, only when they're really called for. Bug: defer fh.Close() without error checking in put(). This can result in data loss. It would also be nice to at least have the option of doing synchronous stores, possibly even with an os.Sync(). reply sebcat 16 hours ago > I find defer pretty expensive, I don't use them that liberally anymore, only when they're really called for. I use defer a lot so I decided to test your statement, and you were right. The...