[Top][All Lists]

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

[Octave-bug-tracker] [bug #63646] Long creation times for sparseimages.m

From: Rik
Subject: [Octave-bug-tracker] [bug #63646] Long creation times for sparseimages.m in manual due to -svgconvert option to print
Date: Fri, 13 Jan 2023 12:00:53 -0500 (EST)

Follow-up Comment #5, bug #63646 (project octave):

Just for completeness, I'm attaching the code to generate the figure in
question as mk_spchol.m.

Using the development branch of octave and run-gui -f (so that none of my
personal settings interfere with timing)

octave:1> tic; mk_spchol; toc
Elapsed time is 0.754476 seconds.
octave:2> graphics_toolkit
ans = qt
octave:3> tic; print -depsc2 -nosvgconvert tmp1.eps; toc
Elapsed time is 0.615009 seconds.
octave:4> tic; print -depsc2 tmp2.eps; toc
Elapsed time is 48.3406 seconds.

I think the proximate reason for the slow behavior is the switch of the
default during printing to include "-svgconvert" option.  In Mercurial logs,

changeset:   31432:df8bdaf1164b
user:        Pantxo Diribarne <pantxo.diribarne@gmail.com>
date:        Mon Aug 29 18:29:24 2022 +0200
summary:     print.m: Use -svgconvert by default (bug #62979)

The Mercurial tag for Octave version 7.3 is changeset 31390 so printing in 7.3
should not be affected.  At least for me, this is the case with my testing.

Incidentally, I also see the same thing with printing to svg.  This might
indicate that we are incorrectly using the svgconvert change even on file
types that don't need it.

octave:3> tic; print -nosvgconvert -dsvg blah2.svg; toc
Elapsed time is 0.290739 seconds.
octave:4> tic; print -dsvg blah2.svg; toc
Elapsed time is 44.2066 seconds.

(file #54220)


Additional Item Attachment:

File name: mk_spchol.m                    Size:0 KB


Reply to this item at:


Message sent via Savannah

reply via email to

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