Skip to content

Comment on But the question is: will it recurse? Part 1: fibonacci(40)parent

Comments

O1 probably sees you don't use the result or have side effects in fibonacci(40) and optimizes the call away...

One of the reasons I get why people advise against certain levels of optimization without understanding its implications. As I write few lines of C code, usually I don't bother with deep understanding of all the concepts of compiler optimization.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.