Re:Interning in Go
by val_deleplace on Thursday September 19, 2024 @12:15PM
(#41593401)
I tested with many concurrent goroutines, and confirmed that calling `unique.Make` does not cause any data race condition
[ Parent
| on HN ]
Re:Interning in Go
by saylisteins on Thursday September 19, 2024 @03:18PM
(#41595345)
Thanks a lot! I also found this blog post where they mention it's thread safe thanks to using HashTrieMap internally
Re:Interning in Go
by val_deleplace on Friday September 27, 2024 @07:27PM
(#41676533)
We agreed to make the threadsafeness more explicit in the documentation of the 'unique' package: https://github.com/golang/go/issues/69637