Reading streams from launched shell process is slow
---------------------------------------------------

                 Key: JRUBY-1406
                 URL: http://jira.codehaus.org/browse/JRUBY-1406
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.0.0
         Environment: Mac OS X 10.4, JDK 1.5.0_07
            Reporter: Nathan Fiedler
         Attachments: patch.diff

Capturing large amounts of output from an external process (say `cat 100k.txt`) 
is quite slow in JRuby. Discussed with Nick and he pointed me to ShellLauncher, 
which I then examined and took out a few choice lines of code. The performance 
for reading 168KB went from 13.37 seconds to 0.03. The tests still pass, and 
I've even added another simple test.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to