Skip to content

Commit 29375de

Browse files
committed
- Removed some debug prints in Types.removeMod, which made the test suite 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
1 parent c2a177a commit 29375de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Compiler/FrontEnd/Types.mo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -885,19 +885,19 @@ algorithm
885885

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

895895
case(DAE.MOD(f,e,subs,oem),componentModified)
896896
equation
897-
Debug.fprint("redecl","Removing redeclare mods: " +& componentModified +&" before" +& Mod.printModStr(inmod) +& "\n");
897+
//Debug.fprint("redecl","Removing redeclare mods: " +& componentModified +&" before" +& Mod.printModStr(inmod) +& "\n");
898898
subs = removeModInSubs(subs,componentModified);
899899
outmod = DAE.MOD(f,e,subs,oem);
900-
Debug.fprint("redecl","Removing redeclare mods: " +& componentModified +&" after" +& Mod.printModStr(outmod) +& "\n");
900+
//Debug.fprint("redecl","Removing redeclare mods: " +& componentModified +&" after" +& Mod.printModStr(outmod) +& "\n");
901901
then
902902
outmod;
903903
end match;

0 commit comments

Comments
 (0)