SIGN IN SIGN UP
vinta / awesome-python UNCLAIMED

An opinionated list of Python frameworks, libraries, tools, and resources.

289849 0 0 Python

perf(website): cache sort values and batch DOM appends in sortRows

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 <[email protected]>
V
Vinta Chen committed
3d9c2ae507575591956c42aede97a513197c7840
Parent: d36f1ed