(2011/12/30 1:46), j.wuttke wrote:
> The simple script
> 
> #!/usr/bin/env ruby.<version>
> require 'yaml'
> t=Time.now
> YAML.load_file(<path>)
> puts Time.now-t
> 
> takes 30 to 40 times longer to execute
> under Ruby1.9.3 than under 1.8.7  when
> <path> points to a YAML file of about 50kB.
> 
> Shall we discuss this issue here or on yaml-core ?
> 
> Who is in charge of the YAML module ?
> 
> Is there hope that we will get back the
> speed of Ruby1.8 ?

From Ruby 1.9.3, the default library of YAML is switched to psych,
which uses libyaml as the backend.
If you want to use previous one, syck, the code should be following:

#!/usr/bin/env ruby.<version>
require 'syck'
require 'yaml'
t=Time.now
YAML.load_file(<path>)
puts Time.now-t 


See also YAML::ENGINE.yamler= 

-- 
NARUSE, Yui  <naruse / airemix.jp>