On 24 May 2010, at 21:51, Judd Storrs wrote:

> On Mon, May 24, 2010 at 3:00 PM, c. <[email protected]> wrote:
>> I tried the same test on my system and the number I see are  
>> consistent
>> with yours.
>
> Do you mind if I ask how you did this? I've been trying but the timing
> differences I find seem to be due to execution of the RC files not due
> to directory structure. strace shows that all the m-files in the path
> are stat'd at least once regardless so personally I don't expect there
> to be a huge difference between having a few directories and large
> directories. Surely nothing on the order of seconds.

You are right, sorry, I had forgotten about ~/.octaverc.
Probably I should have removed it before performing those tests.

>> The only case where a startup time < 3s may matter though is when
>> Octave is being invoked many times within a script.
>> In that case I would say it's better to invoke Octave with the "-qf"
>> option and explicitely load only those packages
>> that are actually needed, e.g. you might want to try this:
>>
>> time octave -qf --eval "pkg load ocs" v.m
>
> Does this work for you? If I use -f then octave isn't able to load any
> packages (octave3.2 on ubuntu 10.4).

I am on OS X Leopard, Octave 3.2.3

$ octave -qf --eval "pkg load ocs" --persist
octave-3.2.3:1> pkg list
Package Name       | Version | Installation directory
-------------------+---------+-----------------------
               bim  |   1.0.0 | /Users/carlo/octave/bim-1.0.0
               fpl  |   1.0.0 | /Users/carlo/octave/fpl-1.0.0
     generate_html  |   0.1.3 | /Users/carlo/octave/generate_html-0.1.3
       integration  |   1.0.7 | /Users/carlo/octave/integration-1.0.7
                io  |  1.0.10 | /Users/carlo/octave/io-1.0.10
              java  |   1.2.7 | /Users/carlo/octave/java-1.2.7
    linear-algebra  |   1.0.8 | /Users/carlo/octave/linear-algebra-1.0.8
     miscellaneous  |   1.0.9 | /Users/carlo/octave/miscellaneous-1.0.9
               msh  |   1.0.2 | /Users/carlo/octave/msh-1.0.2
             nurbs  |   1.1.0 | /Users/carlo/octave/nurbs-1.1.0
               ocs *|   0.1.0 | /Users/carlo/octave/ocs-0.1.0
           oct2mat  |   1.0.7 | /Users/carlo/octave/oct2mat-1.0.7
            odepkg *|  0.6.10 | /Users/carlo/octave/odepkg-0.6.10
physicalconstants  |   0.1.7 | /Users/carlo/octave/ 
physicalconstants-0.1.7
            secs1d  |   0.0.8 | /Users/carlo/octave/secs1d-0.0.8
           splines  |   1.0.7 | /Users/carlo/octave/splines-1.0.7
        statistics  |  1.0.10 | /Users/carlo/octave/statistics-1.0.10
octave-3.2.3:2> pkg load nurbs
octave-3.2.3:3> pkg list
Package Name       | Version | Installation directory
-------------------+---------+-----------------------
               bim  |   1.0.0 | /Users/carlo/octave/bim-1.0.0
               fpl  |   1.0.0 | /Users/carlo/octave/fpl-1.0.0
     generate_html  |   0.1.3 | /Users/carlo/octave/generate_html-0.1.3
       integration  |   1.0.7 | /Users/carlo/octave/integration-1.0.7
                io  |  1.0.10 | /Users/carlo/octave/io-1.0.10
              java  |   1.2.7 | /Users/carlo/octave/java-1.2.7
    linear-algebra  |   1.0.8 | /Users/carlo/octave/linear-algebra-1.0.8
     miscellaneous  |   1.0.9 | /Users/carlo/octave/miscellaneous-1.0.9
               msh  |   1.0.2 | /Users/carlo/octave/msh-1.0.2
             nurbs *|   1.1.0 | /Users/carlo/octave/nurbs-1.1.0
               ocs *|   0.1.0 | /Users/carlo/octave/ocs-0.1.0
           oct2mat  |   1.0.7 | /Users/carlo/octave/oct2mat-1.0.7
            odepkg *|  0.6.10 | /Users/carlo/octave/odepkg-0.6.10
physicalconstants  |   0.1.7 | /Users/carlo/octave/ 
physicalconstants-0.1.7
            secs1d  |   0.0.8 | /Users/carlo/octave/secs1d-0.0.8
           splines  |   1.0.7 | /Users/carlo/octave/splines-1.0.7
        statistics  |  1.0.10 | /Users/carlo/octave/statistics-1.0.10
octave-3.2.3:4>

So it seems to work for me.

>
> --judd
c.

------------------------------------------------------------------------------

_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to