Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2017-12

fgl unit, TFPSList needs DeleteRange

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

AlexeyT

Hello

I have 1M lines file. CudaText (Lazarus app) cannot delete lines fast [selected 800K lines]. Reason: TFPSList has only Delete for one item.

Need DeleteRange for many items.

Regards, Alexey

Reply by email

Michael Van Canneyt
to AlexeyT
AlexeyT wrote 6 lines
Hello I have 1M lines file. CudaText (Lazarus app) cannot delete lines fast [selected 800K lines]. Reason: TFPSList has only Delete for one item. Need DeleteRange for many items.

I'm not sure that it will help you: for many cases the list will need to delete the elements one by one anyway, for instance for interfaces. Or when a notification of an operation is requested.

But we can consider it, so please post a feature request in the bugtracker.

Michael.

Reply by email

AlexeyT

Pls, call Deref for all items (1 by 1), by REALLOC all items [e.g. 800K] as block. Today I call Delete 800K times and do realloc 800K times :(

Regards, Alexey

Reply by email