Menu

#7 Performance optimization: replaced strcpy() with memcpy()

Unstable (example)
closed
nobody
None
5
2015-02-09
2014-04-07
Jerome Lang
No

I replaced strcpy(..) with memcpy(..) in print_array(..) and print_object(..): I get 20% shorter execution times for cJSON_Print(..) and cJSON_PrintUnformatted(..) with big objects.

1 Attachments

Discussion

  • Dave Gamble

    Dave Gamble - 2015-02-09

    Excellent patch! Thanks! In svn rev 60.

     
  • Dave Gamble

    Dave Gamble - 2015-02-09
    • status: open --> accepted
     
  • Dave Gamble

    Dave Gamble - 2015-02-09
    • status: accepted --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB