[omniORB-dev] CORBA::string_dup

Serguei Kolos Serguei.Kolos at cern.ch
Fri Sep 26 16:21:59 BST 2003


Hello

I have noticed that the CORBA::string_dup function uses strcpy to copy 
strings.
Unfortunately on many systems strcpy is much slower then for example 
memcpy.
For example on Linux (RedHat 7.3) the strcpy is 5 (sic!) times slower. 
What do you
think about the idea of using the memcpy in the CORBA::string_dup 
instead of the
strcpy? Are there any drawbacks with the memcpy?

Cheers,
Sergei





More information about the omniORB-dev mailing list