[
https://issues.apache.org/jira/browse/XALANC-647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513635
]
David Bertoni commented on XALANC-647:
--------------------------------------
Since the buffer size is defined by an enum within the class definition, I
think the risk is low. I can add a comment to the enum to indicate that it
cannot be reduced below the length of the longest possible numeric character
reference.
> XalanOtherEncodingWriter::writeNumericCharacterReference() is inefficient
> -------------------------------------------------------------------------
>
> Key: XALANC-647
> URL: https://issues.apache.org/jira/browse/XALANC-647
> Project: XalanC
> Issue Type: Bug
> Affects Versions: CurrentCVS
> Reporter: David Bertoni
> Assignee: David Bertoni
> Attachments: patch.diff
>
>
> This function formats a numeric character reference for any character that is
> not representable in the code page. However, it uses the write() function to
> write the numeric character reference, which will then check each character
> to see if it can be represented in the local code page. This is unnecessary,
> since the characters in a numeric character reference must be representable.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]