Mon, 10 Mar 2014 14:30:37 +0200
- 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.
src/GLCompiler.cc | file | annotate | diff | comparison | revisions |
--- 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);