is there a way to free only the beginning of an array?
I am not that familiar with having to manually allocate memory, but I do know that allocations are slow.
So I found a way to do the calculation I am doing with only one allocation, but the problem is that the way I calculate how much space I need sometimes allocates a couple spaces too much so I end up with 0 to 2 extra spaces in the beginning of my list that are not needed and I cant just use a slice to remove them and return that
I need to something that is essentially this
const res = buf[extra..];
self.allocator.free(buf[0..extra]);
return res;
to free the unneeded bytes
I am unsure about the correct way to do this though