﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1073	Improve instantiation speed (from MathCore)	krsta	krsta	"The major bottleneck in instantiation is that the flat DAE is collected using listAppend, which copies the list for each call and is therefore very ineffective.

For example, to instantiate !BondLib.Examples.!ModelicaSpice.!OrNorGate.!TestOrNor takes
8m 10.578s on my laptop. If I comment out the collection of dae's it takes
2m 2.406s (the line 1699 in Inst.mo:
{{{
dae = Util.listFlatten({dae1,dae2,dae3,dae4,dae5});
}}}

Solution:
The dae should be passed along everywhere so elements (equations, variables, algorithms, etc) can be added using cons, thus eliminating all listAppends."	defect	closed	normal				fixed		krsta Adrian Pop
