Is there a faster/more efficient way to allocate memory for a slice of int64s?
r := make([]int64, 0, 90000)
In Kotlin, an array of longs can be initialized twice as fast as the above code and I was hoping to making the Go version faster.
var result = LongArray(90000)
UPDATE
Here is the code for what I’m trying to do: https://gist.github.com/danielcasler/5508dfb3323ddbe5060e3867216a548d
I’ve made lots of progress on this, and got a pointer going in and the generate function is mutating the array at the pointer address. This exercise as really helped understand Go further. Is there any way to improve this further?