Issue #5767 has been updated by Yura Sokolov.


I removed messing with file.c.
Instead rb_get_load_path returns expanded paths when optimization is enabled.

I have updated pull request, so that it contains one commit.

https://github.com/ruby/ruby/pull/68.patch
https://github.com/ruby/ruby/pull/68
----------------------------------------
Feature #5767: Cache expanded_load_path to reduce startup time
https://bugs.ruby-lang.org/issues/5767

Author: Yura Sokolov
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 


This patch add caching of expanded load path.
It reduces rails startup time by 33%
(patch against 1.9.3-p0 and simple performance test is here https://gist.github.com/1480404 )


-- 
http://bugs.ruby-lang.org/