You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Chris Simmons (JIRA)" <xe...@xml.apache.org> on 2014/06/12 17:17:03 UTC
[jira] [Updated] (XERCESJ-1636) LCount event optimization should be
document scoped
[ https://issues.apache.org/jira/browse/XERCESJ-1636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Simmons updated XERCESJ-1636:
-----------------------------------
Attachment: 010-LCount-per-document.patch
Patch to make LCount document scoped.
> LCount event optimization should be document scoped
> ---------------------------------------------------
>
> Key: XERCESJ-1636
> URL: https://issues.apache.org/jira/browse/XERCESJ-1636
> Project: Xerces2-J
> Issue Type: Improvement
> Components: DOM (Level 2 Events)
> Affects Versions: 2.11.0
> Reporter: Chris Simmons
> Priority: Minor
> Attachments: 010-LCount-per-document.patch
>
>
> Currently Xerces dom has a class LCount that it uses to track when listeners are added and removed. It uses this to avoid dispatching events unnecessarily.
> It isn't very effective though because there's currently a single static lookup. This means that if you add a listener to one DOM and mutate a second completely unrelated DOM then Xerces will needlessly propagate events.
> I have a patch to fix the issue that I will attach.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org