octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Octave on Windows takes a long time to start & run.m reloads Of packages


From: PhilipNienhuis
Subject: Octave on Windows takes a long time to start & run.m reloads Of packages
Date: Sun, 2 Feb 2020 12:18:11 -0600 (CST)

While running __run_test_suite__ with a freshly cross-built Octave-6.0.0 on
Windows, I saw a FAIL in run.m.
That FAIL has been there for quite some time, didn't bother, "test run.m"
works fine when run outside of __run_test_suite__.

But because since one or two days Octave on Windows suddenly takes a very
long time to load I added some tic/toc statements in
chk_spreadsheet_support.m, invoked by __init_io__.m, in turn invoked by
PKG_ADD in the io package, to find out if loading Java classes for
LibreOffice would take so long. I saw no strange things there, finding &
loading loading the .jars takes altogether ~5-6 seconds of in total 25
seconds for he gUI to appear until the prompt is shown. 

And now I see this when running __run_test_suite__.m:

:
  miscellaneous\recycle.m ........................................ pass   
5/5
  miscellaneous\run.m ............................................Loading
regular .jars ... Elapsed time is 0.000999928 seconds.
Loading UNO .jars ... Elapsed time is 0 seconds.
Loading regular .jars ... Elapsed time is 0 seconds.
Loading UNO .jars ... Elapsed time is 0 seconds.
 pass    4/5
                                                                   FAIL    1
  miscellaneous\setfield.m ....................................... pass   
6/6
:

and running "test run.m" by itself:

>> test run.m
Loading regular .jars ... Elapsed time is 0.00100088 seconds.
Loading UNO .jars ... Elapsed time is 0 seconds.
Loading regular .jars ... Elapsed time is 0 seconds.
Loading UNO .jars ... Elapsed time is 0.00100112 seconds.
***** test
 path_orig = path ();
 tmp_dir = tempname ();
 test_function = fullfile (tmp_dir, "tf.m");
 unwind_protect
   mkdir (tmp_dir);
:
< and the rest of the run.m test>

and there's a long delay before I see output from "test run.m". Once the
messages from chk_spreadsheet_support.m are shown, the rest of the output
comes fast.

So it looks like Octave now does a lot of things when running run.m, a.o., 
it seems to re-load the OF packages (because AFAICS that's the only way
chk_spreadsheet_support canbe invoked twice). Or maybe it rebuilds the
complete path, who knows.

Q.: Can anybody confirm this?

Q.: If confirmed, what is the cause, and does Octave work as it should?

Thanks

Philip




--
Sent from: https://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]