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=25353>.
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=25353

Transcoders/Iconv: IconvTranscoder allocates memory although it should not

           Summary: Transcoders/Iconv: IconvTranscoder allocates memory
                    although it should not
           Product: Xerces-C++
           Version: 2.3.0
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Utilities
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The questionable code part is:
bool IconvLCPTranscoder::transcode( const   char* const     toTranscode
                                    ,       XMLCh* const    toFill
                                    , const unsigned int    maxChars)

The function temporarily allocates a buffer for the translation and copies it 
in a for loop (why?) to the 'toFill' buffer.
I always thought the reason of providing the buffer is to avoid the allocation 
and in my case this is a huge performance nag.

This does not happen in the Win32 or Iconv390 implementation.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to