[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #66012] printing to the pdflatex device is slo
From: |
Robert Jenssen |
Subject: |
[Octave-bug-tracker] [bug #66012] printing to the pdflatex device is slow |
Date: |
Mon, 22 Jul 2024 07:36:34 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?66012>
Summary: printing to the pdflatex device is slow
Group: GNU Octave
Submitter: morgawr
Submitted: Mon 22 Jul 2024 11:36:32 AM UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Regression
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 9.2.0
Operating System: GNU/Linux
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Mon 22 Jul 2024 11:36:32 AM UTC By: Robert Jenssen <morgawr>
I use a local build of octave-9.2.0 with qt-6. The __octave_config_info__ is
attached.
Printing a random plot to the pdflatex device is slow:
$ cat src/test/print_latex_test.m
% print_latex_test.m
profile on
version
tic;
x=rand(1000,1);
plot(x);
print("x","-dpdflatex");
close;
toc;
tic;
x2=rand(1000,1);
plot(x2);
print("x2","-dpdflatex");
close;
toc;
profile off
profshow(5)
$ octave -q --no-gui src/test/print_latex_test.m
ans = 9.2.0-robj
Elapsed time is 17.7439 seconds.
Elapsed time is 0.412699 seconds.
# Function Attr Time (s) Time (%) Calls
------------------------------------------------------------
39 set R 12.269 67.61 122
21 get 5.078 27.98 538
36 __go_uimenu__ 0.231 1.27 48
182 __go_delete__ 0.214 1.18 2
173 drawnow 0.164 0.90 6
Elapsed time is 17.5638 seconds.
Elapsed time is 0.415475 seconds.
The first plot takes 18s. The second plot in the session takes less than 1s.
For comparison, I installed the Fedora octave-8.4.0-6.fc40 package:
$ octave --no-gui -q src/test/print_latex_test.m
ans = 8.4.0
Elapsed time is 11.979 seconds.
Elapsed time is 0.412181 seconds.
# Function Attr Time (s) Time (%) Calls
------------------------------------------------------------
39 set R 6.359 51.36 122
173 drawnow 5.238 42.31 6
36 __go_uimenu__ 0.284 2.29 48
182 __go_delete__ 0.274 2.22 2
133 findobj 0.043 0.35 14
_______________________________________________________
File Attachments:
-------------------------------------------------------
Name: __octave_config_info__.txt Size: 24KiB
<https://file.savannah.gnu.org/file/__octave_config_info__.txt?file_id=56296>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-e652e22cf1b17da84d7522661f3af223af1ab762.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66012>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
- [Octave-bug-tracker] [bug #66012] printing to the pdflatex device is slow,
Robert Jenssen <=
- [Octave-bug-tracker] [bug #66012] printing to the pdflatex device is slow, Rik, 2024/07/23
- [Octave-bug-tracker] [bug #66012] printing to the pdflatex device is slow, Dmitri A. Sergatskov, 2024/07/23
- [Octave-bug-tracker] [bug #66012] printing to the pdflatex device is slow, Dmitri A. Sergatskov, 2024/07/23
- [Octave-bug-tracker] [bug #66012] printing to the pdflatex device is slow, Pantxo Diribarne, 2024/07/24
- [Octave-bug-tracker] [bug #66012] printing to the pdflatex device is slow, Robert Jenssen, 2024/07/24
- [Octave-bug-tracker] [bug #66012] printing to the pdflatex device is slow, Pantxo Diribarne, 2024/07/24
- [Octave-bug-tracker] [bug #66012] printing to the pdflatex device is slow, Rik, 2024/07/24
- [Octave-bug-tracker] [bug #66012] printing to the pdflatex device is slow, Robert Jenssen, 2024/07/24
- [Octave-bug-tracker] [bug #66012] printing to the pdflatex device is slow, Pantxo Diribarne, 2024/07/25
- [Octave-bug-tracker] [bug #66012] printing to the pdflatex device is slow, Pantxo Diribarne, 2024/07/25