Changes between Initial Version and Version 23 of Ticket #5482


Ignore:
Timestamp:
2019-05-30T17:34:40Z (5 years ago)
Author:
Adrian Pop
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5482

    • Property Summary NF API is slow when visualizing simple block diagramsFurther speed up of NF API
    • Property Status newreopened
    • Property Priority blockerhigh
  • Ticket #5482 – Description

    initial v23  
    1 I tried to open {{{Modelica.Blocks.Examples.PID_Controller}}} with {{{-d=nfAPI}}}. These are the times spent in various operations, in seconds:
    2 
    3 ||   ||= old API =||= new API ||
    4 ||getIconAnnotation(Modelica.Blocks.Continuous.LimPID)|| 0.483 || 0.436 ||
    5 ||getComponentAnnotations(Modelica.Blocks.Continuous.LimPID) || 0.431 || 0.145 ||
    6 ||getIconAnnotation(Modelica.Blocks.Continuous.Integrator)||0.333||0.403||
    7 ||getIconAnnotation(Modelica.Mechanics.Rotational.Interfaces.PartialTorque)||0.478||0.490||
    8 ||getComponentAnnotations(Modelica.Blocks.Continuous.Integrator)||0.441||0.083||
    9 ||getIconAnnotation(Modelica.Blocks.Nonlinear.Limiter)||0.444||0.389||
    10 ||Total || 7.8 || 9.4 ||
    11 
    12 Although in some cases the new API is faster than the old one, in many it is comparable or even slower, and the overal time spent displaying the diagram is actually longer with the new API.
    13 
    14 That's not what I expected based on the Annual Workshop demo.
    15 
    16 Can you please check why the new API is not substantially faster in this case? Note that this is just the first model I tried out, I did not pick it specifically for performance issues.
     1Collect here the discussion on making the OMEdit faster when displaying models.