mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-08 16:12:23 +02:00
Calling into ::compare_document_position() for each node comparison inside quick_sort() is quite expensive - it calculates more than we need and allocates. Replace it with TreeNode::is_before() which does not, and gives us the required positional info.
58 KiB
58 KiB