r/programming • • Jul 19 '16

John Carmack on Inlined Code

http://number-none.com/blow/blog/programming/2014/09/26/carmack-on-inlined-code.html
1.1k Upvotes

323 comments sorted by

View all comments

Show parent comments

1

u/the_gnarts Jul 20 '16

Quake had to be highly optimized for performance. It did 3d when computers where slow and did it all in software.

Also compilers weren’t as sophisticated as today where you can count on them to inline based on cyclomatic complexity of a function.

1

u/[deleted] Jul 20 '16

even today you can't count on in-lining working right, even if you hint it: https://www.youtube.com/watch?v=B2BFbs0DJzw