Golang writer reset #235

Closed
opened 2026-01-29 20:40:25 +00:00 by claunia · 1 comment
Owner

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.

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.
Author
Owner

@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.

@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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#235