When people complain about slow commit times, finding the bottleneck can be a task of its own. Even rudimentary script execution time measurements could save quite some time.
Sadly in the current backend it's hard to make that debug information granular and well-formatted, but some functionality still can be added.