octave-bug-tracker
[Top][All Lists]
Advanced

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

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


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #63646] Long creation times for sparseimages.m in manual due to -svgconvert option to print
Date: Mon, 16 Jan 2023 13:22:00 -0500 (EST)

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

I do not pretend to understand the algorithm, but I did the following test. In
octave:

    n = 333;
    a = 10*speye (n) + sparse (1:n,ceil ([1:n]/2),1,n,n) + ...
        sparse (ceil ([1:n]/2),1:n,1,n,n);
    r1 = chol (a);
    spy (r1);
    axis ("ij");
    print -nosvgconvert blah0.svg


In the shell:


$ time ./octave-svgconvert_U blah0.svg svg 100 FreeSans.otf 1 blahU.svg

real    2m55.159s
user    2m54.826s
sys     0m0.108s

$ time ./octave-svgconvert_P blah0.svg svg 100 FreeSans.otf 1 blahP.svg

real    0m1.438s
user    0m1.326s
sys     0m0.104s

ls -gG
total 25968
-rw-r--r--. 1 15617770 Jan 16 12:57 blah0.svg
-rw-------. 1  4984800 Jan 16 13:08 blahP.svg
-rw-------. 1  4984800 Jan 16 13:07 blahU.svg
-rwxr-xr-x. 1   851328 Jan 16 12:55 octave-svgconvert_P
-rwxr-xr-x. 1   148152 Jan 16 13:02 octave-svgconvert_U



"P" -- patched, "U" -- unpatched.
Files blahP.svg and blahU.svg although of the same size are different. Both
loads in a viewer noticeably faster than the original blah0.svg.

Dmitri.
-- 






    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63646>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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