# HG changeset patch # User Santeri Piippo # Date 1394454637 -7200 # Node ID d2c6592178f97465b096a8dde1535b1e3e663157 # Parent aca63a3cce36c2d10c6a5b676d7b4ac60b7dcd6e - only sort and strip duplicates from the objects-staged-to-compile list when actually compiling staged objects, this eliminates needless calls which slowed file loading down a ton. diff -r aca63a3cce36 -r d2c6592178f9 src/GLCompiler.cc --- a/src/GLCompiler.cc Mon Mar 10 14:29:12 2014 +0200 +++ b/src/GLCompiler.cc Mon Mar 10 14:30:37 2014 +0200 @@ -190,7 +190,6 @@ void GLCompiler::stageForCompilation (LDObject* obj) { mStaged << obj; - removeDuplicates (mStaged); } // ============================================================================= @@ -208,6 +207,8 @@ // void GLCompiler::compileStaged() { + removeDuplicates (mStaged); + for (LDObject* obj : mStaged) compileObject (obj);