Comment on Linus Torvalds on a ridiculous job performance metric at tech companies and the prominent figure responsible for it

Aceticon@lemmy.dbzer0.com ⁨1⁩ ⁨week⁩ ago

Want to make tons of lines of code from pretty normal code?

Just unroll your fixed size for loops (i.e. convert them into multiple copies of their contents, one after the other as many times as that loop would loop).

You can actually automate it and in fact some compilers will do that when generating assembly for some microprocessor architectures (if the loops aren’t crazy big) because it increases performance in those (because the JMP instruction at the end of the loop is quite expensive).

source
Sort:hotnewtop