JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-6639

Marshal.load takes forever when deserializing Rails unicode db in WEBrick

    Details

    • Number of attachments :
      3

      Description

      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

      1. marshal_output
        116 kB
        Xavier Shay

        Activity

        Keith Gaputis made changes -
        Field Original Value New Value
        Attachment long_delay_prof_dumps.zip [ 60163 ]
        Xavier Shay made changes -
        Attachment marshal_output [ 60181 ]
        Charles Oliver Nutter made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Charles Oliver Nutter [ headius ]
        Fix Version/s JRuby 1.7.0.pre2 [ 18527 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Charles Oliver Nutter
            Reporter:
            Keith Gaputis
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: