Improve target selector performance in Rapid Diffs
What does this MR do and why?
This MR improves target selector performance in Rapid Diffs.
It also:
- Fixes wrong border colors inside the target parallel cell
- Fixes missing border for the meta line
- Renames
nubmertypo tonumber
Screenshots or screen recordings
| Before | After |
|---|---|
|
|
How to set up and validate locally
-
Enable
rapid_diffsandrapid_diffs_on_mr_showfeature flags -
Go to any large merge request (more than 50 files/1000 lines changed)
-
Select 'Changes' tab
-
Add
?rapid_diffs=trueto the URL, follow it -
Measure selector performance in DevTools while selecting text for 5 seconds
-
Observe improved selector performance
Edited by Stanislav Lashmanov

