Nikolai Weibull wrote: > On Thu, Dec 15, 2011 at 10:18, Yura Sokolov <funny.falcon / gmail.com> 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.