Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
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.
You might also consider using other data structures instead of slices, for example, a linked list can be grown without an issue.
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:
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