#ThursdayThoughts YYC Compile Vs Normal Compile / Space & Speed Vs Time To Compile #indiedev #gamedev
I hit the play button (to run my code) in the normal mode, maybe 30s to compile, and there we go.
But if I do the YYC compile, the same exact code takes about (well, one of my test compiles showed me this) 18 minutes.
Now, 'that is too long I hear you cry' but think of it this way. [off the wall explanation coming up]
You want to speak to someone in a language you don't understand, lets say you want to speak to someone in Mandarin (and before people come at me with, I know Mandarin, it's only an example!)
So, you start doing an email or a letter, you have to get your native language into, lets say, Google Translate, and then you copy the result back into the email. They email you back, you have to take their text, run it through the translator and get the result. You can imagine how slow that is, it gets the same results, but a little longer.
Well, that is what happens with the normal 'runner' versus the YYC compiler, except the YYC compiler has taught you how to speak Mandarin, so you get the same results, but it's quicker, but, you know that time it took to 'Learn' Mandarin, well that is the additional time during the first compile.
So, it's worth while in the end, but the lesson learned is… during basic coding, testing, debugging, etc.. the normal compile, if I then want to test a close to final product that would/could crash at the drop of a hat, then it's the YYC
Oh, and an addendum to this little explanation, that is only the FIRST compile, any subsequent
compiles, unless there is any major changes, it only takes seconds.. 🙂