Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
CAFxX committed Sep 27, 2022
1 parent 065e04d commit 6d502dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Compared to the [`josharian/intern` upstream](https://github.com/josharian/inter
- [supports also `[]rune` in addition to `string` and `[]byte`](https://pkg.go.dev/github.com/CAFxX/intern#String)
- makes use of generics (as such it requires Go >= 1.18)
- provides a generic [`Map[K, V]`](https://pkg.go.dev/github.com/CAFxX/intern#Map) interner that allows to intern/memoize custom types (see [`ExampleMap`](https://pkg.go.dev/github.com/CAFxX/intern#example-Map))
- optionally provide a `unsafe`-based implementation that is ~25% faster than the regular one (enabled with the `intern_unsafe` build tag)
- optionally provide a `unsafe`-based implementation that is ~25% faster than the regular one and that it is more stable (less likely to cause OOM errors under pathological usage patterns): it can be enabled with the `intern_unsafe` build tag

For a blog post introducing string interning, see: https://commaok.xyz/post/intern-strings/

Expand Down

0 comments on commit 6d502dc

Please sign in to comment.