Hi Tim,
Thanks for reaching out! I'm happy to report that we are seeing a ~100ms improvement in launch time for the Elements tool as a result of your change. This is a fantastic improvement. However, I also want to clarify that this improvement accounts for 1/6 of the overall regression we're seeing of 600ms in launch time for Chromium DevTools.
In August and September of 2020, we were reporting ~1000ms for launching the Elements tool. As of August 2021, we were reporting ~1600ms. With your change in October 2021, we're now reporting ~1450-1500ms in launch time. Because of the amount of refactoring that's happened in DevTools and the year between August 2020 and August 2021 where we've seen a slowly increasing regression in DevTools launch time, it's practically impossible to identify a culprit commit. I think we're better served by making improvements to DevTools launch time and measuring their impact.
If you continue to make fixes and want to know their performance impact, I'm happy to share the numbers from our existing perf tests but you can also validate these numbers yourself against builds of Chromium by following the steps in this crbug:
1046596 - Move to ESM has introduced regression in DevTools performance - chromium. Your numbers on your dev machine or laptop won't be the same as ours because the underlying hardware is different but you should see similar trends, regressions, and improvements if you test Chromium builds from August 2020, August 2021, and now.
Let me know if there's anything else I can help with!
Thanks,
Zoher