List or List.ToArray

Discussion and help for Easy Save 3

List or List.ToArray

Postby Alexandr Archer » Wed Aug 14, 2019 9:03 am

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.
Alexandr Archer
 
Posts: 2
Joined: Wed Aug 14, 2019 8:37 am

Re: List or List.ToArray

Postby Joel » Wed Aug 14, 2019 5:22 pm

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
Joel Tebbett @ Moodkie Interactive
Twitter - Unity - LinkedIn
User avatar
Joel
Moodkie Staff
 
Posts: 2477
Joined: Wed Nov 07, 2012 10:32 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests