YAML 10x slower loading Graticule data
--------------------------------------

                 Key: JRUBY-2512
                 URL: http://jira.codehaus.org/browse/JRUBY-2512
             Project: JRuby
          Issue Type: Bug
          Components: Extensions
    Affects Versions: JRuby 1.1.1
            Reporter: Thomas E Enebo
            Assignee: Ola Bini
         Attachments: cities.yml

The following script after rehearsal is taking about 10x more time to load than 
MRI.  I know this could be some cost related to Object creation in JRuby 
itself, but we need THE YAML expert to weigh in on this.  Plus it is not 
specific to graticule, so a more descriptive issue seemed fitting:

{noformat}
require 'rubygems'
require 'benchmark'
require 'yaml'
#require 'graticule'

Benchmark.bmbm do |x|
  x.report("YAML loading test:") {
    50.times do
      locations = YAML.load_file('cities.yml')
    end
  }
end

{noformat}

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