Cache jar content list to speed up file? operation
--------------------------------------------------

                 Key: JRUBY-6230
                 URL: https://jira.codehaus.org/browse/JRUBY-6230
             Project: JRuby
          Issue Type: Improvement
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.6.5
            Reporter: Uwe Kubosch
             Fix For: JRuby 1.7
         Attachments: 
0001-Added-a-jarfile-entry-cache-to-speed-up-File.file-ca.patch

Hi!

While profiling our Ruboto app, we noticed a performance regression in startup 
after upgrading JRuby from 1.6.4 to 1.6.5/1.7.0.dev.  Profiling revealed lots 
of time lost in File.file? calls when the load path includes jar files.

I have attached a patch that adds a cache for looking up the contents of jars.  
This reduces the strain on the file system considerably.

All tests run fine after the patch.


--
This message is automatically generated by JIRA.
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