gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gluster-devel] Can we replace strcpy calls with memcpy?


From: Atin Mukherjee
Subject: [Gluster-devel] Can we replace strcpy calls with memcpy?
Date: Mon, 24 Mar 2014 03:05:14 -0400 (EDT)

Hi List,

In GlusterFS codebase, strcpy() calls have been used in many places. IMO, if we can replace strcpy calls with memcpy() we would get a performance bonus as memcpy directly interacts with memory area. I am posting this suggestion based on my earlier project experience where we have seen a significant difference of performance with this replace.

Please feel free to add if you think otherwise.

Regards,
Atin Mukherjee
Senior Software Engineer
E-9, Extn : 73196, Direct : 08039245196, Mobile: +919739491377
Email - address@hidden


reply via email to

[Prev in Thread] Current Thread [Next in Thread]