Enumerator#next has performance issues.
---------------------------------------
Key: JRUBY-5146
URL: http://jira.codehaus.org/browse/JRUBY-5146
Project: JRuby
Issue Type: Bug
Components: Performance
Affects Versions: JRuby 1.5.3
Environment: Linux shadow.lab 2.6.34.7-56.fc13.x86_64 #1 SMP Wed Sep
15 03:36:55 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
jruby 1.5.3 (ruby 1.8.7 patchlevel 249) (2010-09-28 7ca06d7) (OpenJDK 64-Bit
Server VM 1.6.0_18) [amd64-java]
Reporter: Postmodern
Priority: Minor
While running benchmarks for my Combinatorics library on the
`Array#comprehension` method which makes extensive use of Enumerator objects, I
noticed JRuby was considerably slower than Ruby 1.9.2 or even Rubinius.
Benchmark:
http://github.com/postmodern/combinatorics/blob/master/benchmarks/list_comprehension.rb
Results: http://github.com/postmodern/combinatorics/blob/master/Benchmarks.md
`Array#comprehension` source:
http://github.com/postmodern/combinatorics/blob/master/lib/combinatorics/list_comprehension.rb#L44
--
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