Skip to content

Commit

Permalink
- Removed some debug prints in Types.removeMod, which made the test s…
Browse files Browse the repository at this point in the history
…uite about

  20% faster. Some of the larger Media models became almost 40% faster.
- Updated some tests due to the previous SCodeDump changes.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9430 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Jul 6, 2011
1 parent c2a177a commit 29375de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Compiler/FrontEnd/Types.mo
Expand Up @@ -885,19 +885,19 @@ algorithm

case((inmod as DAE.REDECL(f,e,redecls)),componentModified)
equation
Debug.fprint("redecl","Removing redeclare mods: " +& componentModified +&" before" +& Mod.printModStr(inmod) +& "\n");
//Debug.fprint("redecl","Removing redeclare mods: " +& componentModified +&" before" +& Mod.printModStr(inmod) +& "\n");
redecls = removeRedeclareMods(redecls,componentModified);
outmod = Util.if_(listLength(redecls) > 0,DAE.REDECL(f,e,redecls), DAE.NOMOD());
Debug.fprint("redecl","Removing redeclare mods: " +& componentModified +&" after" +& Mod.printModStr(outmod) +& "\n");
//Debug.fprint("redecl","Removing redeclare mods: " +& componentModified +&" after" +& Mod.printModStr(outmod) +& "\n");
then
outmod;

case(DAE.MOD(f,e,subs,oem),componentModified)
equation
Debug.fprint("redecl","Removing redeclare mods: " +& componentModified +&" before" +& Mod.printModStr(inmod) +& "\n");
//Debug.fprint("redecl","Removing redeclare mods: " +& componentModified +&" before" +& Mod.printModStr(inmod) +& "\n");
subs = removeModInSubs(subs,componentModified);
outmod = DAE.MOD(f,e,subs,oem);
Debug.fprint("redecl","Removing redeclare mods: " +& componentModified +&" after" +& Mod.printModStr(outmod) +& "\n");
//Debug.fprint("redecl","Removing redeclare mods: " +& componentModified +&" after" +& Mod.printModStr(outmod) +& "\n");
then
outmod;
end match;
Expand Down

0 comments on commit 29375de

Please sign in to comment.