-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Left Side Panel Very Slow #919
Comments
Interesting. We do utilize the For me, the issue with the delay in hovering over items is especially noticeable in Firefox, even with a decently fast machine. Maybe there is an issue with the way we have configured the virtual scroller or a browser specific bug with the library itself... It may take some time to investigate possible improvements here. Thanks for bringing attention to this issue! |
Any updates on this? My team maintains a package with a pretty high amount of targets and their docs are merged with |
No updates as of yet—sorry. It would be valuable to get some feedback from you on a couple of items though:
|
@mportiz08 Thank you for the fast reply.
We are building docc from source from https://github.com/apple/swift-docc.git at the
We have mainly tested on latest versions of Chrome and Safari, but I just tested on latest Firefox and it seems similar across the board.
Right now we have ~50 targets in our package (this used to be a multi repo project that has since been combined into a single package), and the scrolling / highlighting issues are immediate - even without expanding any of these targets' docs. I can try to reduce this number just to see if I can determine the point where it gets particularly bad and get back to you. |
I know this is not really scientific - I have no idea if the documentation contents of the targets influence this performance, and this is just on a single M3 Pro, but in my testing:
I saw similar performance across browsers. |
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
main
branch of this package.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
Swift-DocC-Render Version Information
No response
The text was updated successfully, but these errors were encountered: