CORBA::string_dup
Serguei Kolos <[email protected]> Fri, 26 Sep 2003 15:21:59 +0200
| Newsgroups | gmane.comp.corba.omniorb.devel |
|---|---|
| Organization | CERN |
| Message-ID | <[email protected]> |
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