C: Is the inline keyword worth it?
问题 Is it worth it to use the inline keyword or the compiler is smart enough to know when he needs to inline a function ? 回答1: The compiler is pretty smart, and has multiple metrics to figure out if something is worth inlining. But sometimes however the developer will have knowledge about how the application is going to be run and will know to inline something that the compiler doesn't do automatically. However, I would never inline stuff manually unless I had a done some benchmarks and found