CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 16 to 18 of 18
  1. #16
    Join Date
    Mar 2001
    Posts
    2,353

    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.
    ahoodin
    To keep the plot moving, that's why.

  2. #17
    Join Date
    Feb 2012
    Location
    Fremont,CA
    Posts
    28

    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()
    Thanks and Regards By Cygnis Media

  3. #18
    Join Date
    Jan 2003
    Location
    Wallisellen (Zürich), Switzerland
    Posts
    16,183

    Re: Quick Array Copy

    Consider memcpy.
    Victor Nijegorodov

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2

Tags for this Thread

Bookmarks

Posting Permissions

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



HTML5 Development Center

Click Here to Expand Forum to Full Width