From: Eric Wong Date: 2017-07-24T20:28:45+00:00 Subject: [ruby-core:82152] Re: [Ruby trunk Bug#13167] Dir.glob is 25x slower since Ruby 2.2 pdahorek@seznam.cz wrote: > Bug #13167: Dir.glob is 25x slower since Ruby 2.2 > https://bugs.ruby-lang.org/issues/13167#change-65905 I didn't see a difference in Linux between 2.1 and trunk; but this seems wrong on Linux and could be optimized: $ strace -c -e getdents ruby --disable=gems -e 'Dir.glob("*/*.{flac}")' => 935 getdents calls $ strace -c -e getdents ruby --disable=gems -e 'Dir.glob("*/*.{flac,ogg}")' => 1870 getdents calls $ strace -c -e getdents ruby --disable=gems -e 'Dir.glob("*/*.{flac,ogg,mp3}")' => 2805 getdents calls Investigating... Unsubscribe: