Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.7
-
Fix Version/s: JRuby 1.7.0.pre2
-
Component/s: Performance, Ruby 1.9.3, Standard Library, Windows
-
Labels:
-
Environment:Windows 7 x64, Java JDK 6_32 and 7_4, Rails 3.2.3, JRuby 1.6.7 and 1.6.7.2
-
Number of attachments :
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
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 ] |