﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5482	NF API is slow when visualizing simple block diagrams	Francesco Casella	Adrian Pop	"I tried to open {{{Modelica.Blocks.Examples.PID_Controller}}} with {{{-d=nfAPI}}}. These are the times spent in various operations, in seconds:

||   ||= old API =||= new API ||
||getIconAnnotation(Modelica.Blocks.Continuous.LimPID)|| 0.483 || 0.436 ||
||getComponentAnnotations(Modelica.Blocks.Continuous.LimPID) || 0.431 || 0.145 ||
||getIconAnnotation(Modelica.Blocks.Continuous.Integrator)||0.333||0.403||
||getIconAnnotation(Modelica.Mechanics.Rotational.Interfaces.PartialTorque)||0.478||0.490||
||getComponentAnnotations(Modelica.Blocks.Continuous.Integrator)||0.441||0.083||
||getIconAnnotation(Modelica.Blocks.Nonlinear.Limiter)||0.444||0.389||
||Total || 7.8 || 9.4 ||

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.

That's not what I expected based on the Annual Workshop demo.

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."	defect	new	blocker	1.14.0	NF API				
