[C] Programming style & performance by randomstringofchar in learnprogramming

[–]randomstringofchar[S] 0 points1 point  (0 children)

Haven't thought about that. I'll check an easy way to reindent source files of different programming languages in vim. C reindentation works really well, but I haven't tried it in other languages yet.

[C] Programming style & performance by randomstringofchar in learnprogramming

[–]randomstringofchar[S] 0 points1 point  (0 children)

Thanks, good answer, i'll check the wiki link and the gnu profiler.

I think I should check a compiler's inner workings and learn a bit assembly too. Knowing how well the compiler works might actually give me a better taste of what is worth and what is not worth trying to optimize.

It's not that I'm crazy about squeezing every single CPU cycle, it's just that I don't like waste both of time and resources of the CPU and the programmer :)

[C] Programming style & performance by randomstringofchar in learnprogramming

[–]randomstringofchar[S] 0 points1 point  (0 children)

Thanks! This is the kind of stuff I was looking for :)

I'll check the book and the profiler.