JRuby is >1000x slower than MRI on base64ing long string. Patch to fix it
included.
-----------------------------------------------------------------------------------
Key: JRUBY-2200
URL: http://jira.codehaus.org/browse/JRUBY-2200
Project: JRuby
Issue Type: Improvement
Components: Performance
Reporter: Tomasz Wegrzanowski
Fix For: JRuby 1.1
Attachments: making_base64_encode_on_instead_of_on2.diff
Array#pack("m") and therefore Base64.encode64 in JRuby is O(n^2) and very slow.
In MRI it's O(n) and very fast.
The attached patch makes JRuby Array#pack("m") and therefore Base64.encode64
O(n) and very fast.
After applying the patch JRuby still passes all unit tests.
--
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