Home > other >  About generic table Lsit traverse speed
About generic table Lsit traverse speed

Time:09-24

Encapsulation of a class, a lot of property field method of what, now I took this class instantiation objects to join in the List, because this class is "big", so I just wonder if being encapsulated in the class of things too much and affect the rate of traversal

CodePudding user response:

But in fact I only traversal of several attribute changes, should I consider this a few attributes extracted do a class,,,

CodePudding user response:

Traverse speed has nothing to do with the element in the container size, related to the container

CodePudding user response:

C # under the list, deposit are object references, the speed of query has nothing to do with the size of the object
C + + list, if you put the pointer to the object, then, query speed also has nothing to do with the size of the object,
  • Related