Colin van Eenige
banner
cvaneenige.bsky.social
Colin van Eenige
@cvaneenige.bsky.social
Lead Front-end / Design Engineer at Stream
You might remember: https://webgl.app
#CSS #JavaScript #WebGL #performance
Trade-off in handling attributes during parse or on property access. During parse will push it to 0.4 ms/file. The attributes will only be parsed once regardless of how many times they are accessed.

Benchmark from github.com/AndreasMadse...
GitHub - AndreasMadsen/htmlparser-benchmark: Simple benchmark for diffrent htmlparsers using real-life data
Simple benchmark for diffrent htmlparsers using real-life data - AndreasMadsen/htmlparser-benchmark
github.com
December 27, 2024 at 2:03 PM
Some might argue the optimization at this point, but I find it interesting to learn about performance and memory allocation for specific function calls, especially in iterations. Parsing HTML strings is a different beast.
December 21, 2024 at 9:24 PM
Yes, this was released initially one year ago and shared on 𝕏. Quite a few (performance) improvements pending, should I get back to it?
November 25, 2024 at 9:34 AM