Speed up csh_glob
authorFather Chrysostomos <sprout@cpan.org>
Tue, 25 Oct 2011 05:27:48 +0000 (22:27 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 27 Oct 2011 01:22:17 +0000 (18:22 -0700)
commitedfed4c3099abba2a8b83e8dde6bcff0952c07f5
tree9fa1f8bd181f73863303416ec9d4bc56d64cecf4
parent293dcbbbfd30a0f0282734d71ac98c53abfd07ec
Speed up csh_glob

If it’s not going to be using the pattern at all (due to iteration),
there is absolutely no point in parsing it.

This will speed up CORE::glob and <...> as well, since they use
csh_glob by default.
ext/File-Glob/Glob.pm