﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3669	The front-end takes too much time doing basic operations	Francesco Casella	Per Östlund	"Consider the attached test package. The model M contains N scalar differential equations. That's it: no models within models, no connection equations, no inheritance, no functions, no package constants, no fancy stuff.

These are the execution time of the front-end on my Windows pc:
|| N    || Time [s] ||
||2000  ||  5.2 ||
||4000  || 20.5 ||
||6000  || 45.1 ||
||8000  || 63.5 ||

I don't understand why the time grows almost quadratically with the number of equations. Also, looking at the last row and doing the math, I don't understand why instantiating one scalar equation with four variables should take a whooping 8 ms time - you can do a lot of things in 8 ms on a I5 processor @ 2.5 GHz...

It seems to me that there is something fundamentally wrong in how this thing is handled, which makes it impossible to deal with models with more than 10000 states (which is not such a big deal, we're not taling about finite element or 3D fluid dynamics models) in a reasonable amount of time.

I hope this example is small enough to allow a detailed analysis :)"	defect	closed	high	1.9.x	Frontend	v1.9.4-dev-nightly	fixed		Martin Sjölund andrea.bartolini@…
