bugGNU Octave - Bugs: bug #47455, very slow legend execution

 
 

bug #47455: very slow legend execution

Submitted by:  marco atzeri <matzeri>
Submitted on:  Fri 18 Mar 2016 11:12:02 AM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 3 - LowItem Group: Performance
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 17 Nov 2016 10:36:30 AM UTC, comment #3:

This bug is still present in the current dev 4.3.0 (39f39eb4e476).

I filed task #14243 about rewriting legend.m

Pantxo Diribarne <pantxo>
Project Member
Wed 23 Mar 2016 09:09:37 PM UTC, comment #2:

fltk and gnuplot are in the same ball park.

marco atzeri <matzeri>
Wed 23 Mar 2016 08:40:51 PM UTC, comment #1:

What graphics toolkit was used for benchmarking?

Rik <rik5>
Project Administrator
Fri 18 Mar 2016 11:12:02 AM UTC, original submission:

Legend execution time is very long when
first or new location is requested .
The legend time can be more than the plot time:

octave:3> source legenda_profile.m
bAfter = 1
Elapsed time is 0.405601 seconds.
Graph plotted
Elapsed time is 0.546001 seconds.
Legend command #1
Elapsed time is 0 seconds.
Legend command #2
Elapsed time is 0.501201 seconds.
Legend command #3
Elapsed time is 0.0468001 seconds.
remaining plot stuff
# Function Attr Time (s) Time (%) Calls
-------------------------------------------------------------------
72 _line_ 0.265 48.57 23
35 set 0.078 14.29 83
1 legend 0.031 5.71 1
15 get 0.031 5.71 375
76 cellfun 0.031 5.71 23
61 text 0.016 2.86 17
9 numel 0.016 2.86 382
14 gcf 0.016 2.86 41
51 _go_axes_ 0.016 2.86 1
65 _go_text_ 0.016 2.86 17
77 _go_line_ 0.016 2.86 23
81 findobj 0.016 2.86 1
2 nargin 0.000 0.00 194
3 binary > 0.000 0.00 350
4 ishandle 0.000 0.00 44
5 prefix ! 0.000 0.00 199
6 _plt_get_axis_arg_ 0.000 0.00 41
7 strcmpi 0.000 0.00 166
8 find 0.000 0.00 105
10 binary == 0.000 0.00 378

marco atzeri <matzeri>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #36685:  legenda_profile.m added by matzeri (1KiB - application/octet-stream - Test case)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by johasixt
  • -unavailable- added by pantxo (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by matzeri (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 08 Feb 2017 12:11:48 PM UTCjohasixtCarbon-Copy-=>Added johasixt
    Tue 22 Mar 2016 01:15:55 AM UTCmtmillerPriority5 - Normal=>3 - Low
      StatusNone=>Confirmed
      Release4.0.0=>dev
    Fri 18 Mar 2016 11:12:02 AM UTCmatzeriAttached File-=>Added legenda_profile.m, #36685

    Back to the top


    Powered by Savane 3.1-cleanup1