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
    Posts
    2,365

    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
    36

    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()
    Make sure you check out my >>Facebook Development Blog and Website<<

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

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center