Description
Description
(Apologies for using the Apple hosted documentation rather than reproducing locally. I'm not much of web developer.)
If I look at a documentation page for Swift's libraries, let's take https://developer.apple.com/documentation/swift/string/subsequence as our example, the time taken to scroll the left frame is longer than I would expect. On my slower machine (AMD A6, 8 gigs of RAM) scrolling a single new line of content takes 4-6 seconds. Scrolling one line up takes a further 4-6 seconds. Then scrolling one line down takes yet another delay.
On a faster machine (M2, 16 gigs of RAM) if I scroll multiple lines there's a delay of two seconds or so before content is drawn. If I then scroll up (to the place it was before) there's another delay, and then scroll down there's another delay.
Checklist
- If possible, I've reproduced the issue using the
main
branch of this package. - This issue hasn't been addressed in an existing GitHub issue.
Expected Behavior
The frame should draw almost instantly if all the user is doing is scrolling, as it's static text. If there are technical reasons as to why it takes so much processing time, what I would say is that I would expect content that had previously been rendered to not take the same full time to display every time.
Actual behavior
Content takes a long time to render (visible pause with no content while scrolling) and subsequent scrolls around the area doesn't change the render time of the content.
Steps To Reproduce
- Visit https://developer.apple.com/documentation/swift/string/subsequence (I was using Firefox 133) (using an older PC and not a top-end development machine ideally, but it's probably noticable on anything)
- Scroll the left panel up and down.
- Observe the redraw behaviour -- how long it takes, and if it gets any faster if rendering content it's already rendered.
- Move your mouse over the labels, noting how long it takes for the blue highlight to catch up with your mouse cursor.
- Enter text into the filter area. There should be a noticable lag. (On my slow machine, this takes four seconds for each keystroke!)
Swift-DocC-Render Version Information
No response