Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
README.md: avoid []byte -> string allocation/copy (#98)
FreeCache invests a lot of effort to minimize GC overhead, yet the README example has a case where a (potentially very large) copy is made just as part of a `fmt.Println` call. With this change, it uses `fmt.Printf("%s\n", ...)`, which should be used in any case involving `Println` and a `[]byte` that's intended to be interpreted as string data.
- Loading branch information