Subject: | pod survey very slow |
Date: | Sat, 02 Oct 2010 10:48:54 +1000 |
To: | bug-Gtk2-Ex-PodViewer [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
If you've got a few thousand module files in @INC the survey() done by
Pod::Simple::Search is very slow (it opens and reads every one of them,
or some such).
I think PodViewer load_doc() should instead just use the individual
find() of that searcher. Or perhaps of Pod::Find, I don't know which is
better.
Maybe the filenames for each pod visited by load_doc() could be cached,
if it's suspected there might be some visiting back and forward among a
set of related modules. But I wouldn't think that was necessary either
as long as there isn't a huge number of directories in @INC.