|
|
|
|
|
by weberc2
2797 days ago
|
|
That benchmarks game quote supports my point (not sure if you quoted it to contradict me or not?). As for prohibited optimizations, arena allocation is the one that comes to mind since it’s the standard way to avoid O(n) allocs. |
|
As-long-as your point was not intended to be dismissive in any way.
> prohibited optimizations
Go programs are not prohibited from using arena allocation provided by a generally available library — that is what the C++ programs do.
Unfortunately there doesn't seem to be a generally available Go library that provides arena allocation. Of course, Go does provide GC.