mirror of
https://github.com/vinta/awesome-python.git
synced 2026-03-23 22:52:21 +08:00
Calling getSortValue inside the comparator ran DOM queries on every comparison (O(n log n) reads). Hoisting into a forEach beforehand reduces that to O(n). Batching row appends through a DocumentFragment also avoids repeated reflows during table reorder. Co-Authored-By: Claude <noreply@anthropic.com>