Thanks Alexander.

Which style of implementation did you use ? Did you use the old array lookup 
key as the new object key in the key/value pair ? i.e. did you enumerate the 
keys like this: ?

======= OLD WAY =======

ARRAY LONGINT(vArrKeysID; 1000)
ARRAY LONGINT(vArrKeysNames; 1000)

$x:=Find in Array(vArrKeysID;345)

If($x>0)
$0:= vArrKeysNames{$x}
End if

======= NEW WAY =======

C_OBJECT($myOBJECT)

For($i;1;1000)

 $key:=String($i)
 $value:=$i
 OB SET($myOBJECT;$key;$value)

End For

…then for finding (passing the ID in $1:

$key:=string($1)

$0:=ob get($myOBJECT;$key)

======================

Is that how you did it ? (i.e. with calculated/hashed keys).

Peter


On 17 Jul 2017, at 13:17, Herr Alexander Heintz via 4D_Tech 
<[email protected]> wrote:

> Using objects was MAGNITUDES faster than synchronised arrays

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to