Subject: | Unnecessarily writing .stored files that are already up-to-date |
As shown by the log below (and confirmed against 0.048), CPANPLUS is writing the Storable datafiles every time they're loaded, regardless of whether any indexes are reloaded or not. IF (a) the indexes are loaded from .stored AND (b) the indexes are not modified in memory, there's no need to write them out on each exit. By not doing this extra write (especially on slow machines), CPANPLUS appears to be much faster.
coral@cay:~/work/ > cpanp
CPANPLUS::Shell::Default -- CPAN exploration and modules installation (v0.03)
*** Please report bugs to <cpanplus-bugs@lists.sourceforge.net>.
*** Using CPANPLUS::Backend v0.045. ReadLine support enabled.
CPAN Terminal> m ^UNIVERSAL::foo
Checking if source files are up to date
Retrieving /Users/coral/.cpanplus/mailrc.2.08.stored
Retrieving /Users/coral/.cpanplus/dslip.2.08.stored
Retrieving /Users/coral/.cpanplus/packages.2.08.stored
Your search generated no results
CPAN Terminal> quit
Exiting CPANPLUS shell
Writing state information back to disk. This may take a little while.