News for hackers. Stuff that matters.
Re:Saving 13M Computational Minutes per Day with Flame Graphs by Illniyar on Monday April 11, 2016 @03:57PM (#11474624)
Wouldn't such an insanely big call stack be a performance issue in itself?
Re:Saving 13M Computational Minutes per Day with Flame Graphs by d33 on Monday April 11, 2016 @04:27PM (#11474823)
Well it depends. Stack is just a data structure. I'd say that the fact alone that you go from a deep call stack to "iterative" version where you can clearly see the stack in the code doesn't automatically make it much better.
Re:Saving 13M Computational Minutes per Day with Flame Graphs by geodel on Monday April 11, 2016 @06:16PM (#11475601)
These call stacks are normal for typical Java enterprise application.
Re:Saving 13M Computational Minutes per Day with Flame Graphs by topspin on Monday April 11, 2016 @07:17PM (#11475921)
Indeed this is normal. Apache Camel produced such huge stack traces they refactored the routing system specifically to reduce AsyncCallback usage and shorten stack traces; at one time Camel would dump traces thousands of lines long. However, pointing this out doesn't actually address the question; is there a performance issue indicated by these huge call stacks?

I've wondered about the question myself when encountering incredibly long stack traces while troubleshooting Java systems. I've also wondered if there is some more general dysfunction indicated. I've see impressive stack traces in C and C++, but nothing quite like what I've found in Java. What is the experience of C# programmers?

Re:Saving 13M Computational Minutes per Day with Flame Graphs by ww520 on Monday April 11, 2016 @04:48PM (#11474956)
Recursive call would have huge call stack.