Re: [Rd] execution time of .packages

2009-03-03 Thread Romain Francois
Prof Brian Ripley wrote: Let me repeat: what is happening for me in the equivalent of your 35.589 - 1.18 seconds is that R is waiting for my OS to read its discs (and they can be heard chuntering away). As the R process is not runniing at those times, the profiler is not running either (on a

Re: [Rd] execution time of .packages

2009-03-03 Thread Prof Brian Ripley
Let me repeat: what is happening for me in the equivalent of your 35.589 - 1.18 seconds is that R is waiting for my OS to read its discs (and they can be heard chuntering away). As the R process is not runniing at those times, the profiler is not running either (on a Unix-alike: on Windows the

Re: [Rd] execution time of .packages

2009-03-03 Thread Romain Francois
Prof Brian Ripley wrote: On Tue, 3 Mar 2009, Romain Francois wrote: Prof Brian Ripley wrote: The caching is in the disc system: you need to find and read the package metadata for every package. AFAIK it is not easy to flush the disc cache, but quite easy to overwrite it with later reads. (

Re: [Rd] execution time of .packages

2009-03-03 Thread Prof Brian Ripley
On Tue, 3 Mar 2009, Romain Francois wrote: Prof Brian Ripley wrote: The caching is in the disc system: you need to find and read the package metadata for every package. AFAIK it is not easy to flush the disc cache, but quite easy to overwrite it with later reads. (Google for more info.) Tha

Re: [Rd] execution time of .packages

2009-03-03 Thread Romain Francois
Prof Brian Ripley wrote: The caching is in the disc system: you need to find and read the package metadata for every package. AFAIK it is not easy to flush the disc cache, but quite easy to overwrite it with later reads. (Google for more info.) Thanks for the info, I'll try to find my way wi

Re: [Rd] execution time of .packages

2009-03-03 Thread Prof Brian Ripley
The caching is in the disc system: you need to find and read the package metadata for every package. AFAIK it is not easy to flush the disc cache, but quite easy to overwrite it with later reads. (Google for more info.) If you are not concerned about validity of the installed packages you c

[Rd] execution time of .packages

2009-03-03 Thread Romain Francois
Hello, The first time in a session I call .packages( all.available = T ), it takes a long time (I have many packages installed from CRAN): > system.time( packs <- .packages( all = T ) ) user system elapsed 0.738 0.276 43.787 When I call it again, the time is now much reduced, so there mu