Fast copy of TList <T>?
问题 Is there a fast way to copy a generic TList? Copy.Capacity := List.Count; for Item in List do Copy.Add (Item); is very slow. There seems to be no way to use CopyMemory since I can't get the memory adress of the internal array (which is obvious from an information hiding viewpoint). I miss something like List.Copy (Copy); which uses the knowledge of the internal representation to improve performance. Can it be done? 回答1: For the generic TList<T> it is simply not possible to implement the