From: Urabe Shyouhei Date: 2011-12-15T19:50:07+09:00 Subject: [ruby-core:41674] Re: [ruby-trunk - Feature #5767][Open] Cache expanded_load_path to reduce startup time Nikolai Weibull wrote: > On Thu, Dec 15, 2011 at 10:18, Yura Sokolov wrote: >> >> Issue #5767 has been reported by Yura Sokolov. >> >> ---------------------------------------- >> Feature #5767: Cache expanded_load_path to reduce startup time >> http://redmine.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 ) > > Is it only me, or is treating $LOAD_PATH like an array hurting > possible optimizations? I mean, how sane is it to allow > $LOAD_PATH.map!{ ��� }? $LOAD_PATH determines the order to search required files. At least it must be ordered linearly.