Quick Array Copy - Page 2
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18

Thread: Quick Array Copy

  1. #16
    Join Date
    Mar 2001

    Re: Quick Array Copy

    Again this is a limitation of .net. The Common Language Runtime is similar to java's virtual machine and just in time compiled languages create programs that execute faster than interpreted languages, but still lag behind unmanaged C and C++ generally.
    To keep the plot moving, that's why.

  2. #17
    Join Date
    Feb 2012

    Re: Quick Array Copy

    > Dear developers,
    > I have a question. Is there a faster array copy than a for loop. What
    > would you suggest for this code sample?
    > void get(char* src, char* dest, int i) {
    > for (int j = 0; j < recordLen; j++, i++) {
    > dest[j] = src[i];
    > }
    > }
    > Thank you for int main()

  3. #18
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Wallisellen (ZH), Switzerland

    Re: Quick Array Copy

    Consider memcpy.
    Victor Nijegorodov

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!

HTML5 Development Center