Re: [fpc-pascal] fgl unit, TFPSList needs DeleteRange

2017-12-10 Thread 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 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/c

Re: [fpc-pascal] fgl unit, TFPSList needs DeleteRange

2017-12-10 Thread Benito van der Zander
Hi Michael Van, delete the elements one by one anyway, for instance for interfaces. that can still be speed up by range deletion.  First call _Release on them all, then remove them with move/fillchar. Bye, Benito ___ fpc-pascal maillist -

Re: [fpc-pascal] fgl unit, TFPSList needs DeleteRange

2017-12-10 Thread Michael Van Canneyt
On Sun, 10 Dec 2017, AlexeyT wrote: 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

[fpc-pascal] fgl unit, TFPSList needs DeleteRange

2017-12-10 Thread 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 ___ fpc-pascal maillist - fpc-pascal@lists.freep