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
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 -
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
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