Skip to content

Commit b95e6eb

Browse files
committed
Performance fixes.
- Changed paths hashtable in InstExtends to a list of hashtables, to avoid the need to copy it when entering a new scope. - Cleaned up and optimized various functions in InstExtends. - Disabled state machine processing when using a Modelica version older than 3.3, to avoid creating expensive but unused hashtables.
1 parent e0b0d22 commit b95e6eb

File tree

4 files changed

+430
-581
lines changed

4 files changed

+430
-581
lines changed

Compiler/FFrontEnd/FGraph.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ algorithm
797797
end getScopePath;
798798

799799
public function getGraphNameStr
800-
"Returns the FQ name of the environment, see also getGraphPath"
800+
"Returns the FQ name of the environment."
801801
input Graph inGraph;
802802
output String outString;
803803
algorithm
@@ -810,7 +810,7 @@ algorithm
810810
end getGraphNameStr;
811811

812812
public function getGraphName
813-
"Returns the FQ name of the environment, see also getEnvPath"
813+
"Returns the FQ name of the environment."
814814
input Graph inGraph;
815815
output Absyn.Path outPath;
816816
protected
@@ -827,7 +827,7 @@ algorithm
827827
end getGraphName;
828828

829829
public function getGraphNameNoImplicitScopes
830-
"Returns the FQ name of the environment, see also getEnvPath"
830+
"Returns the FQ name of the environment."
831831
input Graph inGraph;
832832
output Absyn.Path outPath;
833833
protected

0 commit comments

Comments
 (0)