What are the pros and cons of using dynamic array of records vs. TList<TMyRecord> in Delphi?
问题 This is a theoretical question intended to generate a look-up list of pros and cons of different data storage ways in Delphi. Let's say we have a record: type TMyRecord = record X,Y,Z: Single; IsValid: Boolean; end; Basic options of storing an array of such records are: array of TMyRecord; custom descendant of TList with getter/setter TList<TMyRecord>; I'm specifically interested about #1 vs #3 comparison, how much is the difference between those, especially performance-wise. 回答1: TList<T>