Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Lines of Code and Optimisation

Name: Anonymous 2013-05-25 8:06

Hi, I'm relatively new to programming and I have a question.

Does few LoC == faster? Or is it in the algorithm itself? Is there an instance where more LoC is faster than the shorter one?

Name: Anonymous 2013-05-25 9:25

Well, in C, you can compare a dumb strlen implementation with one using a Duff's device. The latter will need more LOCs, but should be faster (depending in the compiler).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List