Description
DiscussionTools runs mostly in the client on talk pages, and parses the on-page content into a more structured threaded discussion, so that we can provide a simple "reply link" for users to reply to a specific comment in a discussion.
Preview environment
Any talk page on beta, e.g. https://en.wikipedia.beta.wmflabs.org/wiki/Talk:Cats
You should see 'Reply' links after every comment.
Which code to review
All code in the DiscussionTools extension.
Performance assessment
What work has been done to ensure the best possible performance of the feature?
All code is loaded async to avoid affecting time to first paint.
What are likely to be the weak areas (e.g. bottlenecks) of the code in terms of performance?
Potentially time to load HTML from RESTBase, or time to parse the comment thread on very large pages.
Also time to save on large pages, although this will be equivalent to editing a large page with VE.
Are there potential optimisations that haven't been performed yet?
We are duplicating the comment parser in PHP, so we can move some processing from the frontend to the backend and reduce the amount of data we need to send back to the server when saving.
Please list which performance measurements are in place for the feature and/or what you've measured ad-hoc so far. If you are unsure what to measure, ask the Performance Team for advice: performance-team@wikimedia.org.
We will likely eventually use an EventLogging schema to track key timing metrics.