Is there a noticeable perf difference between using stack vs array in C#?
@kunikos Thank you. I looked into it a bit more, and for my purpose (object pooling for bullets), a stack works fine
-
-
@DaveVoyles alternatively there's Queue; I think FIFO may be closer to behavior you want for created bullets right? -
@kunikos It's all the same thing to me, really. In JS I was always using arrays (hence, no queue or stack), but either should work here
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.