Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lrtz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
1.
▲
by
lrtz
2y ago
There's big performance downside replacing classes with attributes at least when using javascript query selectors. Browsers have special data structures for id and class search optimizations. Matching attributes scans through the dom t