Mail Archives: djgpp/1997/07/13/02:51:38
David Orme wrote:
>
> I have two arrays, larger than 64K in size, and I need to copy one to the
> other VERY quickly. A browse through the RHIDE help files gives the
> following as options:
>
> memcpy
> bcopy
> dosmemget, dosmemput
> dosmemgetb, dosmemputb
> dosmemgetl, dosmemputl
> dosmemgetw, dosmemputw
> movedata
> movedatab
> movedatal
> movedataw
>
> Quite a list, don't you think?
>
> My question is: Which is the fastest?
>
> Thanx in advance...
Well, clearly, get rid of the ones with 'b' or 'w' at the end. I
haven't checked the assembly, but I believe that 'movedatal' would be
the fastest. But, make sure that your buffers are on dword boundaries.
Eric
--
---------------------------------------------------------------------
To reply: send to ericl AT emu DOT com, do not simply reply. Thanks.
- Raw text -