Opened 7 years ago

Closed 2 years ago

#2033 closed enhancement (fixed)

Reduce memory footprint of InstAccesses

Reported by: Jesper Mattsson Owned by: Jesper Mattsson
Priority: major Milestone: Pending
Component: Modelica/FrontEnd Version: trunk
Keywords: #2031. Cc:

Description

It seems like InstAccesses takes a lot of memory. Investigate why and reduce it if possible.

This is a part of #2031.

Change History (15)

comment:1 Changed 7 years ago by Jesper Mattsson

changeset:3879

Changed Dot & InstDot to use flat structure instead of tree to reduce memory use.

comment:2 Changed 7 years ago by jsten

changeset:3901
Removed some unused lazy attributes and removed an unnecessary circular attribute from InstAccess.

comment:3 Changed 7 years ago by jsten

changeset:3902
Removed lazy from InstAccess.qualifiedAllFArraySubscripts(), lazy is not necessary since the attribute is called few times per instance.

comment:4 Changed 7 years ago by jsten

changeset:3903
Removed lazy from InstAccess.size(), lazy is not necessary since the attribute is called few times per instance.

comment:5 Changed 7 years ago by jsten

changeset:3907
Removed lazy from InstAccess.type(), lazy is not necessary since the attribute is called few times per instance.

comment:6 Changed 7 years ago by jsten

changeset:3909
Removed lazy from FExp.inEquationSection(), FExp.inInitialEquationSection() and FExp.inEquation(), lazy is not necessary since the attribute is called few times per instance.

comment:7 Changed 7 years ago by jsten

changeset:3910
Moved lazy for InstAccess.qualifiedLookupInstClass() to InstClassAccess.qualifiedLookupInstClass(). Also moved lazy for InstAccess.myInstClassDecl() to InstClassAccess.myInstClassDecl(), lazy is not necessary since the attribute is called few times per instance.

comment:8 Changed 7 years ago by jsten

changeset:3931
Removed unnecessary lazy and circular attribute from InstClassAccess.qualifiedLookupInstClass().
It is safe to remove since the method code uses lazy methods with circular guards.

comment:9 Changed 7 years ago by jsten

changeset:3932
Moved lazyness from InstAccess.myInstComponentDecl() to InstComponentAccess.myInstComponentDecl().

comment:10 Changed 7 years ago by jsten

changeset:3933
Removed unnecessary lazy attribute from GlobalAccess.qualifiedName(), Dot.qualifiedName(), InstDot.qualifiedName() and InstGlobalAccess.qualifiedName().

comment:11 Changed 7 years ago by Jesper Mattsson

Milestone: 1.9.x1.10.x

Ongoing -> 1.10.x

comment:12 Changed 7 years ago by Jesper Mattsson

Milestone: 1.10.x1.11.x

comment:13 Changed 6 years ago by Tove Bergdahl

Milestone: 1.11.xFuture

comment:14 Changed 6 years ago by Tove Bergdahl

Milestone: FuturePending

comment:15 Changed 2 years ago by Jesper Mattsson

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.