bugGNU Octave - Bugs: bug #55418, Speed issue with uicontrols

 
 

bug #55418: Speed issue with uicontrols

Submitted by:  Guillaume <gyom>
Submitted on:  Tue 08 Jan 2019 11:41:51 AM UTC  
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Confirmed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  Open
Release:  dev Operating System:  GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 09 Jan 2019 07:54:30 AM UTC, comment #3:

The main problem is that some properties rely on the the widget being actually built to be correct. Lets take an example: suppose the extent property of uicontrol objects would work properly :-), i.e. computed and set from the GUI thread once the string is parsed and displayed by Qt.

If I wait for a drawnow before creating the uicontrol, then ext will be wrong since the widget has not been created at the time the "extent" is queried.

This problem is tricky and I'll take a look at it once Octave 5 is released.

Pantxo Diribarne <pantxo>
Project Member
Tue 08 Jan 2019 06:06:35 PM UTC, comment #2:

Thanks for the feedback; I prefer reliable to fast. I marked it as regression but that's something to look at after the 5.0 release. That said, can you think of ways to accelerate it? For example, would it help if a redraw was only performed at the end of the sequence?

Guillaume <gyom>
Tue 08 Jan 2019 03:22:20 PM UTC, comment #1:

Confirmed, the whole sequence takes ~1s in Octave 4.4.1 while it takes ~5s in Octave 5.
This is most probably due to the fact that Widgets are now created synchronously (the interpreter waits for Widget n to be created in the GUI thread before creating Widget n+1). This change made the Qt toolkit much more reliable but also much slower for creation/deletion of GUI elements.

Pantxo Diribarne <pantxo>
Project Member
Tue 08 Jan 2019 11:41:51 AM UTC, original submission:

I notice a significant difference in speed between 4.4.1 and 5.0.1 when displaying and deleting uicontrols. The following script runs nearly instantaneously in Matlab and Octave 4.4.1 but is much slower with current Octave dev.

Guillaume <gyom>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by gyom (Submitted the item)
  •  

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

    Only project members can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-08 pantxo StatusNone => Confirmed

    Back to the top


    Powered by Savane 3.4