From: Brian Candler Date: 2008-12-10T07:14:25+09:00 Subject: Re: Way to many calls to Dir#[] Tj Holowaychuk wrote: > Thanks! that is helping, its all from rubygems > 'rubygems/gem_path_searcher.rb' file, just seems very excessive. Startup with rubygems can be pretty slow. Of course, once your app is running it should be fine; you can turn on profiling later in the code. > My gem > is 'commander' and it searches for mine in a good 25 locations or so Sounds reasonable - I'd expect /usr/lib/ruby/gems/1.8/gems/*/lib > then moves on to looking for Win32API and termios in at least 200 > directories :S Not sure why so many directories there; you'd have to analyse that list yourself. > neither of which I am using, the only library I am using > is highline, which does not require those either... Clearly, something is requiring them. But I'm not a Windows user, so I can't help you pin this down further. But since highline is something to do with terminal interaction, I'd certainly expect it to try to load termios, and perhaps Win32API on a Windows box. -- Posted via http://www.ruby-forum.com/.