Bomb Bloke, on 12 July 2016 - 12:31 AM, said:
It can be done, but I can't think of any method that'd actually be faster than simply sticking the values in one index at a time.
For example, an array the size you're talking about can be built within a twentieth of a second via a simple "for" loop - you'd need to go a lot larger than that before it'd start to matter.
For example, an array the size you're talking about can be built within a twentieth of a second via a simple "for" loop - you'd need to go a lot larger than that before it'd start to matter.
Timed it and it took 0.15 seconds, 15x more than you said. Initializing the array with the correct size initially could reduce that time by quite a bit.