Skip to content

Commit

Permalink
Performance fixes.
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
perost committed Feb 11, 2016
1 parent e0b0d22 commit b95e6eb
Show file tree
Hide file tree
Showing 4 changed files with 430 additions and 581 deletions.
6 changes: 3 additions & 3 deletions Compiler/FFrontEnd/FGraph.mo
Expand Up @@ -797,7 +797,7 @@ algorithm
end getScopePath;

public function getGraphNameStr
"Returns the FQ name of the environment, see also getGraphPath"
"Returns the FQ name of the environment."
input Graph inGraph;
output String outString;
algorithm
Expand All @@ -810,7 +810,7 @@ algorithm
end getGraphNameStr;

public function getGraphName
"Returns the FQ name of the environment, see also getEnvPath"
"Returns the FQ name of the environment."
input Graph inGraph;
output Absyn.Path outPath;
protected
Expand All @@ -827,7 +827,7 @@ algorithm
end getGraphName;

public function getGraphNameNoImplicitScopes
"Returns the FQ name of the environment, see also getEnvPath"
"Returns the FQ name of the environment."
input Graph inGraph;
output Absyn.Path outPath;
protected
Expand Down

0 comments on commit b95e6eb

Please sign in to comment.