use require_relative to reduce syscalls at startup
commit8f7c396792c1e81ea14a7a275db9b0cd3ae96ec8
authorEric Wong <e@80x24.org>
Thu, 5 Feb 2015 17:45:14 +0000 (5 17:45 +0000)
committerEric Wong <e@80x24.org>
Thu, 5 Feb 2015 17:58:33 +0000 (5 17:58 +0000)
treef81096870fbea7e9ce9f9767276ade14a14d909c
parentbaab2fc0600c284bf5108a9d9b02b774174ded5d
use require_relative to reduce syscalls at startup

require_relative appeared in Ruby 1.9.2 to speed up load times by
avoiding needless open() syscalls.  This has no effect if you're using
RUBYLIB or the '-I' option when running ruby(1), but avoids searching
paths in other gems.

This does not affect unicorn greatly as unicorn does not activate many
gems, but still leads to reducing ~45 syscalls during startup.
lib/unicorn.rb
lib/unicorn/const.rb