mirror of
https://github.com/google/brotli.git
synced 2026-09-22 14:45:51 +00:00
Golang writer reset #235
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @japettyjohn on GitHub (Jun 1, 2018).
The other compression implementations in the Go standard library implement some form of reset method to reuse instances of the writer.
Would this improve performance in a scenario like a go based webserver? Not sure if it's worth implementing.
@eustas commented on GitHub (Jun 4, 2018):
It would make sense if native brotli would support that. Currently it is not.
Overall initialization is very cheap, not sure if is make much sense, especially within GC-ed memory environments.