Use Array<> instead of List<> where performance is critical, and where the size of the list does not change often.

  • List Iteration : 67.146 sec
  • Arary Iteration : 40.821 sec

More info at StackOverflow


For loops with List<> are faster than Foreach loops:

  • Array/for: 1864 ms
  • Array/foreach: 1860 ms
  • List/for: 1971 ms
  • List/foreach: 3054 ms

More info at StackOverflow

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.