Our great sponsors
-
This post is based on arena package proposal by Dan Scales and arena performance experiment by thepudds.
-
You might also consider using other data structures instead of slices, for example, a linked list can be grown without an issue.
-
SonarQube
Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
-
You can achieve even better results in small toy applications. For example, you can take the Binary Trees example from Benchmark Games and change the code to use memory arenas:
-
arena-performance
Go stdlib arenas: benchmarking and possibly improving arena performance (Go proposal #51317)
This post is based on arena package proposal by Dan Scales and arena performance experiment by thepudds.
Related posts
- When will Go get sets?
- Does anyone else get tired of the "that's trivial to implement" excuse for leaving things out of the standard library?
- Go streams (a look at what is possible with generics)
- FYI: pkg.go.dev doesn't show packages with generics
- [go1.18beata1] Bug while runnings package tests on generic code