DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4442>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4442 BinMemInputStream::readBytes is inefficient Summary: BinMemInputStream::readBytes is inefficient Product: Xerces-C++ Version: Nightly build Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Utilities AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] While profiling Xerces, we identified a significant CPU spike in the BinMemInputStream, when we copy some data from one buffer to another: < for (unsigned int index = 0; index < actualToRead; index++) < toFill[index] = fBuffer[fCurIndex++]; replacing this with: > memcpy(toFill, &fBuffer[fCurIndex], actualToRead); > fCurIndex += actualToRead; gave a 2% overall increase in our application throughput, and removed the spike from the profile. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
