This enabled multithreaded building of the keys that needs to be drawn in the timeline (and other action editors).
The patch should be applied on top of D12052.
Test file is a adaptation of the file found in T78995: Poor performance in Timeline, Dope Sheet, etc when at the top of the editor.. It enabled the onion skinning to make sure that it still works.
On my system AMD Ryzen 3800 it is can get 8 frames per second.