Performance Regression Support (Manual / CI) #1102
Labels
C: maintenance
Related to project maintenance, e.g. CI, testing, policy changes, releases
C: performance
Black is too slow. Or too fast.
T: enhancement
New feature or request
Background
black
andblackd
are very helpful in IDE scenarios for formatting when invoking a keyboard shortcut and formatting on save. However, this means performance of the tool is paramount. A slow formatter can make writing code feel sluggish, especially if you save often or tend to format often.Performance Regression Testing
I recently was mulling over the idea of performance regression testing on PRs (PR compared to master). While we can think of various ways to improve performance (some ideas are already in #366), ensuring maintained performance is also important. For example, if I'm a contributor and I fix a bug by performing more thorough checks when formatting, and I degrade performance by 10%, I should probably think of another way to fix the bug. Additionally, a tool like this could also quantify impact of changes that actually improve performance.
Open to Suggestions
Wanted to make an issue to get folks' thoughts about this. In particular:
cc: @ambv, @zsol, @JelleZijlstra
The text was updated successfully, but these errors were encountered: