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

Vineet Reynolds (JIRA) issues at jboss.org
Mon Sep 15 05:33:03 EDT 2014


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

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

[~koen.aers], Yes, issuing a correction - this behavior manifests during execution of scripts using the run command, and not otherwise as you mentioned. All commands in the script file are written one by one to the stream, interpreted and eventually written to the Document widget.

https://github.com/aeshell/aesh/blob/master/src/main/java/org/jboss/aesh/console/AeshInputProcessor.java#L101 and

https://github.com/aeshell/aesh/blob/master/src/main/java/org/jboss/aesh/console/AeshConsoleBuffer.java#L330

Setting a breakpoint here https://github.com/jbosstools/jbosstools-forge/blob/master/plugins/org.jboss.tools.aesh.ui/src/org/jboss/tools/aesh/ui/internal/document/DocumentImpl.java#L99 confirms this.

> Forge console is sluggish on Windows
> ------------------------------------
>
>                 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.CR1
>
>
> 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