Keith Gaputis created JRUBY-6639:
------------------------------------

             Summary: Marshal.load takes forever when deserializing Rails 
unicode db in WEBrick
                 Key: JRUBY-6639
                 URL: https://jira.codehaus.org/browse/JRUBY-6639
             Project: JRuby
          Issue Type: Bug
          Components: Performance, Ruby 1.9.3, Standard Library, Windows
    Affects Versions: JRuby 1.6.7
         Environment: Windows 7 x64, Java JDK 6_32 and 7_4, Rails 3.2.3, JRuby 
1.6.7 and 1.6.7.2
            Reporter: Keith Gaputis
         Attachments: long_delay.zip

There is a very long delay (~100 seconds) when deserializing the Rails unicode 
DB using Marshal.load running in WEBrick. 

    File.open(ActiveSupport::Multibyte::Unicode::UnicodeDatabase.filename, 
'rb') { |f| 
      puts 'start loading unicode db'
      Marshal.load f.read 
      puts 'finished loading unicode db'
    }   

This is a 800kb binary file, the issue appears to be WEBrick specific, as it 
does not occur in Rails Console or when running the JRuby app using winstone. 

Please see attached file with  sample app, and refer to "home/index" action.

Thanks,
Keith

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.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