If the debugger is active, a lot of the time is spent building stack frames and saving them. Most of them end up discarded as we exit functions. Instead of doing this, we can build the stack on demand when a breakpoint is hit. This would provide a big performance benefit when the debugger is being actively used
If the debugger is active, a lot of the time is spent building stack frames and saving them. Most of them end up discarded as we exit functions. Instead of doing this, we can build the stack on demand when a breakpoint is hit. This would provide a big performance benefit when the debugger is being actively used