Page 1 of 1

List or List.ToArray

Posted: Wed Aug 14, 2019 9:03 am
by Alexandr Archer
Which is faster to save - List<> or List<> as Array with ToArray method?
I have a lot of lists to save and need to optimize process.

Re: List or List.ToArray

Posted: Wed Aug 14, 2019 5:22 pm
by Joel
Hi there,

There will be no noticeable difference between the two, but converting to an array first will likely be slower in most circumstances.

All the best,
Joel