- 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.

Mon, 10 Mar 2014 14:30:37 +0200

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Mon, 10 Mar 2014 14:30:37 +0200
changeset 700
d2c6592178f9
parent 699
aca63a3cce36
child 701
25b7b4aa9916

- 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);
 

mercurial