Erik Engheim
Nov 30, 2021

--

It is super easy, nothing to remember. This allocates 15 000 points in Go in one single allocation:

var points [15000]Point

You don't need a custom allocator. Custom allocator is if you want to create e.g. a binary tree.

--

--

Erik Engheim
Erik Engheim

Written by Erik Engheim

Geek dad, living in Oslo, Norway with passion for UX, Julia programming, science, teaching, reading and writing.

Responses (1)