Started by spark, February 17, 2014, 12:23:34 AM
0 Members and 1 Guest are viewing this topic.
QuoteI don't think you should consider this from a performance standpoint, rather, look at it from a readability standpoint. The second version collects, well, a collection of things, into a single storage mechanism; from a readability standpoint it's superior.Not that it matters, but from a performance standpoint I can't imagine the second one costs much, if anything, certainly not enough to overcome the readability benefit.
QuoteStoring all your data in one array could be faster, depending on how you're handling your data. I would recommend grouping each group of data that has a close relation to eachother in an array.