forEach is slower as compared to a regular loop but more importantly this change removes an anonymous function and thus makes stack traces shorter and easier to read (important for perf analysis). PR Close #29543
forEach is slower as compared to a regular loop but more importantly this change removes an anonymous function and thus makes stack traces shorter and easier to read (important for perf analysis). PR Close #29543