Re: [Lazarus] TStringList alternatives?

2016-08-06 Thread Denis Kozlov

On 04/08/2016 14:15, Landmesser John wrote:

i use TStringList  to store about 100.000 values.

That's ok, but i would like to know if there are better ways to do that?


You can try TFPStringHashTable and TDictionary/THashMap generics. Maybe 
they will perform faster than TStringList.


Denis
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TStringList alternatives?

2016-08-04 Thread Xiangrong Fang
Have a look at my generic TVector implementation, written from scratch,
based on dynamic array:

https://github.com/xrfang/fpcollection/blob/master/src/units/vector.pas

Regards.



On Thu, Aug 4, 2016 at 9:15 PM, Landmesser John  wrote:

> i use TStringList  to store about 100.000 values.
>
> That's ok, but i would like to know if there are better ways to do that?
>
> I have Values from a Oracle Database with Row-Id's like
> 2016070502523396 HTCSFVRY
>
> My StringList is sorted, to do a quick IndexOf()
>
> I would need  add and IndexOf()
>
> What about VirtualTree? TList ... ?
>
> advices are welcome :-))
>
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus-ide.org
> http://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus