List or List.ToArray

Discussion and help for Easy Save 3
Post Reply
Alexandr Archer
Posts: 2
Joined: Wed Aug 14, 2019 8:37 am

List or List.ToArray

Post 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.

User avatar
Moodkie Staff
Posts: 3141
Joined: Wed Nov 07, 2012 10:32 pm

Re: List or List.ToArray

Post 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 @ Moodkie Interactive
Twitter - Unity

Post Reply