Garbage collection and value types

sign up sign in

I did not try the snowkit libraries yet, but i really like the idea and the concept.

I have two questions concerning the performance:

  1. Is it possible to use the libraries without creating any garbage? If so, what do you have to keep in mind to achieve this?

  2. Is it possible to define custom value types, which a) can be allocated on the stack and b) can be easily stored within a contiguous chunk of memory with something like a resizable array?

Maybe these are not snowkit specific questions, but I also did not use Haxe yet and googling has not helped.

Maybe there are even different answers to these questions for the different build targets. I am more interested in the mobile targets, because performance could really matter there.

Thanks in advance.