mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-24 10:58:20 +00:00
b03165fcce
A TreeWalker ends up walking potentially every single subsequent node in the document looking for a target node. Instead use upwards traversal to find a common ancestor, then sibling traversal to compare document order. This makes calling cloneContents on every comment on a 300k talk page significantly faster, going from >30s to 500ms locally. Change-Id: I28a2b8c11d4098d9bc44d19b98e19ccc02273098 |
||
---|---|---|
.. | ||
ApiDiscussionTools.php | ||
ApiDiscussionToolsEdit.php | ||
CommentFormatter.php | ||
CommentItem.php | ||
CommentModifier.php | ||
CommentParser.php | ||
CommentUtils.php | ||
Data.php | ||
HeadingItem.php | ||
Hooks.php | ||
ImmutableRange.php | ||
NodeFilter.php | ||
ThreadItem.php | ||
TreeWalker.php |