Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个问题说明了一切。我在看Can a recursive function be inline? 所以试图将其与Java相关联。
有点。尾递归方法可以很容易地转换为循环。否则,JITC 可能会将多个调用内联为一种“展开”。
不过,这取决于月相和星期几——许多不同的因素会影响 JITC 的决定。