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

Koen Aers (JIRA) issues at jboss.org
Mon Sep 15 02:29:02 EDT 2014


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

Koen Aers commented on JBIDE-18330:
-----------------------------------

It is not true that characters are written one at a time. The algorithm searches for the next ANSI escape character and when that is found writes out all the characters up to the escape character. 

https://github.com/jbosstools/jbosstools-forge/blob/master/plugins/org.jboss.tools.aesh.core/src/org/jboss/tools/aesh/core/internal/io/CommandFilter.java#L35

It is true though that, when the escape character is found, the algorithm needs to inspect the sequence one character at a time until a valid ANSI command is found. 

> Forge console is sluggish on Windows
> ------------------------------------
>
>                 Key: JBIDE-18330
>                 URL: https://issues.jboss.org/browse/JBIDE-18330
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: forge
>    Affects Versions: 4.2.0.Beta3
>         Environment: Windows 7 64-bit, Oracle 8 JDK
>            Reporter: Vineet Reynolds
>            Assignee: Vineet Reynolds
>
> The Forge console appears to be sluggish in Windows. It appears to be so slow that characters appear one at a time.
> Scripts also execute much slower on Windows as compared to Linux or Mac, and often require setting the {{--timeout}} parameter for longer scripts.
> The root cause appears to be the Forge plugin itself, that writes characters to the console, one at a time, and often delegated to a separate thread that updates the JFace document. This could be optimized to ensure that:
> * updates to the document are done in 'block mode' instead of 'character mode'.
> * context-switching between the execution thread and the UI thread is also minimized.



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


More information about the jbosstools-issues mailing list