In C#, if the class list has more elements, it slows down crying

Asked 2 years ago, Updated 2 years ago, 85 views

UNI.T is programming. There's a class called MyClass in C# Declare a list, create an object with new MyClass() and put it in Add Inserting more than a thousand objects takes a lot of time. Is it supposed to be like this?Is there any other way to handle the class arrangement? The list is more convenient than the simple arrangement, but the speed is too slow. I have to put in more than a million

c# unity

2022-09-21 19:50

1 Answers

I can't put in a million...Out of memory.

Consider the database.


2022-09-21 19:50

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.