You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Yash Talwar (JIRA)" <xa...@xml.apache.org> on 2005/03/31 23:41:20 UTC

[jira] Updated: (XALANJ-2089) Performance degradation in ElemNumber.

     [ http://issues.apache.org/jira/browse/XALANJ-2089?page=history ]

Yash Talwar updated XALANJ-2089:
--------------------------------

    Attachment: XalanJ2089_Patch.txt

The problem is that in 2.6.0 xalan.jar, org.apache.xalan.templates.ElemNumber class make use of an static array.

  private static char[] m_alphaCountTable = null;

This array is used to keep information about a resources.  However, in situation where locale information can be changed dynamically, this would result an error, becuase this static array would keep cache about resource bundle and would not reflect the dynamic change.  To resolve this defect and another potential security bug, Christine Li had changed the code to obtain the resource bundle for every request.  This had resulted in bad performance.

The performance hit was seen during a performance testing phase.
I found the source of the problem.

Christine Li has created patch to resolve this issue.  I am attaching this patch on behalf of Christine as she is away on vacation.

Brian Minchau had helped in creating this patch.  I am assigning Brian as reviewer of this patch.

> Performance degradation in ElemNumber.
> --------------------------------------
>
>          Key: XALANJ-2089
>          URL: http://issues.apache.org/jira/browse/XALANJ-2089
>      Project: XalanJ2
>         Type: Bug
>  Environment: Windows 2000
>     Reporter: Yash Talwar
>     Assignee: Yash Talwar
>  Attachments: XalanJ2089_Patch.txt
>
> org.apache.xalan.templates.ElemNumber has performance degradation between currentCVS version versus Version 2.6.0 xalan.jar file.
> I have performed some testing to validate this degradation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org