Werner Hauptfleisch wrote:
> 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.

This might sound stupid, but I've found out that the best way to speed
up something in code is often to not do it at all.

Is there a specific reason that you need to make a copy of the array
you're using? Wouldn't it be possible to handle (do whatever it is
you're doing to the copy) the part you're interested in of the original
array instead of making a copy and handling that?

I understand that sometimes you really must do a copy (for example, when
you wish to retain the original items in the array unchanged), but very
often I see the copying (rather than doing the actions directly to the
original done) only because it makes the code easier to write.

And as Roberto suggested, Borland's usenet groups are propably the best
way to find specific help on this problem. You can find a list of groups
at http://info.borland.com/newsgroups/

HTH.

-- 
Markku Uttula


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