Hi Everyone,

I know this is not related to synapse, but I am really stuck on this and am
not finding a solution :(

Is there a faster way to copy sections of a dynamic to another array of the
same type? For example, I have two dynamic arrays of the same type, and want
to copy a section of the one array to a temporary array used for sorting and
searching. Using the Copy Function seems to be a timely process.

In the example below, MainArr is a dynamic array that has 150000 elements,
and I only want to copy elements 10 to 310 to TempArr:

TempArr := Copy(MainArr, 10, 300);

Is there any faster way to get this data into TempArr. Currently it takes
about 1 millisecond - which seems acceptable, but I am having to repeat this
process several thousand times in a thread, which means all the 1
millisecond processes adds up to several seconds!

thanks 4 the advice!

W
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to