Odd discovery - Source code and speed
This discovery sprouted from a long line of random thoughts and a few hours of pointless daydreaming... basically heres what I discovered:
I decided to go through the firefox source code, and remove every comment, every blank line of code, and every tab.
This left me with a (much smaller) hunk of uncommented, untabbed code.
And to my suprise, it actually made Firefox faster. I mean a lot freaking faster. I'm guessing it's from the smaller file sizes and less processing power used when bypasssing comments.
I will say I don't know much about code and compiling and software speed.
Anyways, so over the 3 weeks following that, I decided to do that to all major components of my OS, (xfce, xfwm, firefox, thunderbird, bash, libreoffice, and some of the x11 things)
I could not believe how much this has increased the overall speed of my OS...
Maybe one of you could enlighten me as to why what I did made such a difference. Perhaps then I could squeeze even more out of this code
Things to remember :
- Use proper english
- Comment your code
- Keep background information and introductions to a minimum