Timeline for Please review my solution to Project Euler program 1
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 28, 2019 at 2:59 | comment | added | Peter Cordes |
I hope any real "performance folks" know that compilers aggressively inline functions small, and that constant propagation can happen after inlining. A compiler that didn't do that wouldn't be worth using! I would suggest making the helper static inline though, to make sure the compiler knows it doesn't have to emit a stand-alone definition of the function. Otherwise that's only possible with LTO (which you should use). And (in case you're compiling this into a Unix shared lib) that symbol interposition can't override it, so inlining into a caller in the same file is still allowed.
|
|
Sep 29, 2015 at 19:17 | review | Late answers | |||
Sep 29, 2015 at 19:29 | |||||
Oct 18, 2013 at 15:44 | history | answered | spinard | CC BY-SA 3.0 |