• The Go Blog The Green Tea Garbage Collector Go 1.25 includes a new experimental garbage collector called Green Tea, available by setting GOEXPERIMENT=greenteagc at build time. • Many workloads spend around 10% less time in the garbage collector, but some workloads see a reduction of up to 40%! • It’s production-ready and already in use at Google, so we encourage you to try it out. • We know some workloads don’t benefit as much, or even at all, so your feedback is crucial to helping us move forward. • Based on the data we have now, we plan to make it the default in Go 1.26. • To report back with any problems, file a new issue.
Article Summaries:
- Go 1.25 introduces an experimental garbage collector called Green Tea, enabled by setting
GOEXPERIMENT=greenteagcat build time. The new collector is already production‑ready and in use at Google, delivering roughly 10 % less GC time on most workloads and up to 40 % on some. The Go team plans to make Green Tea the default collector in the upcoming Go 1.26 release. Users are encouraged to try the feature, report issues via a new GitHub issue, and share successes on the existing Green Tea issue to help refine the implementation.
Sources: