[jbosstools-issues] [JBoss JIRA] (JBIDE-18330) Forge console is sluggish on Windows during script execution

Vineet Reynolds (JIRA) issues at jboss.org
Wed Sep 17 02:00:04 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-18330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003288#comment-13003288 ] 

Vineet Reynolds commented on JBIDE-18330:
-----------------------------------------

To provide an update of where I am right now:

The performance issue is definitely due to several invocations of {{textWidget.setStyleRange(styleRange);}} in the {{DocumentListenerImpl}} class. The purpose of the class is two fold - 

* to update the location of the cursor (it should be the last line in the view), 
* and to update the styles so that colors are used in the output (this is where the performance degradation occurs).

Unlike Linux, on Windows, every character written to the document triggers a document update (and hence this listener). On Linux, style ranges for entire character sequences are handled correctly, but on Windows this is so sub-optimal that the range is applied for every character. Additionally, style ranges do not work on Windows for some reason - all text is unstyled.

Now that the root cause is found, I'll proceed to fixing this discrepancy.

> Forge console is sluggish on Windows during script execution
> ------------------------------------------------------------
>
>                 Key: JBIDE-18330
>                 URL: https://issues.jboss.org/browse/JBIDE-18330
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: forge
>    Affects Versions: 4.2.0.Beta3
>         Environment: Windows 7 64-bit, Oracle 8 JDK
>            Reporter: Vineet Reynolds
>            Assignee: Vineet Reynolds
>            Priority: Critical
>             Fix For: 4.2.0.CR2
>
>         Attachments: generate.fsh
>
>
> The Forge console appears to be sluggish in Windows. It appears to be so slow that characters appear one at a time.
> Scripts execute much slower on Windows as compared to Linux or Mac, and often require setting the {{--timeout}} parameter for longer scripts.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jbosstools-issues mailing list