[PATCH] Optimize RubyIO.getline() performance
---------------------------------------------

                 Key: JRUBY-2689
                 URL: http://jira.codehaus.org/browse/JRUBY-2689
             Project: JRuby
          Issue Type: Improvement
            Reporter: Wayne Meissner
            Assignee: Thomas E Enebo
            Priority: Minor
         Attachments: getline.patch

RubyIO.getline() is pretty slow due to its use of Stream.fgetc() to read 
characters 1-at-a-time from the ChannelStream buffer.

The attached patch implements ChannelStream.getline() which is a simplified 
version of getline that searches for a single byte, and changes 
RubyIO.getline() to use that.

-- 
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