[jbosstools-issues] [JBoss JIRA] (JBIDE-10881) JBoss Tools JSP Editor is very slow with large selections because of SelectionBar.notifyChanged()

Vlado Pakan (JIRA) jira-events at lists.jboss.org
Mon Feb 27 14:06:37 EST 2012


     [ https://issues.jboss.org/browse/JBIDE-10881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vlado Pakan closed JBIDE-10881.
-------------------------------



Verified on JBT 3.3.0.v20120224-2315-H93-Beta1.

Synchornization with outline view while selecting text within VPE also takes to much time but I think it's Eclipse issue.
                
> JBoss Tools JSP Editor is very slow with large selections because of SelectionBar.notifyChanged()
> -------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-10881
>                 URL: https://issues.jboss.org/browse/JBIDE-10881
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Visual Page Editor core
>    Affects Versions: 3.3.0.M5
>            Reporter: Viacheslav Kabanovich
>            Assignee: Denis Maliarevich
>             Fix For: 3.3.0.Beta1
>
>         Attachments: SelectionBar.java.patch
>
>
> 1. Create a JSF KickStart project.
> 2.Open inputUserName.jsp
> 3. Copy 1000 times line
> {code}
> <h1><h:outputText value="#{Message.header}"/></h1>
> {code}
> 4. Select these 1000 lines.
> 5. Delete and Save.
> 6. Undo by Ctrl+Z.
> Editor freezes for several minutes. Debugger shows that most time is spent for method SelectionBar.updateNodes() called by SelectionBar.notifyChanged.
> The problem is that when 1000 lines are removed, XML model sends thousands of deferred events about each removed XML node, so that instead of one call to SelectionBar.updateNodes(), there are thousands of them.
> I suggest creating UIJob at the first call to SelectionBar.notifyChanged, and ignoring subsequent calls until the job is not done.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list