Solution to Performance Puzzler with a Stacktrace