Files
hyperframes/scripts/package-size-budgets.json
T
Michael WangandClaude Opus 5.5 12832e3a98 perf(lint): rules scan script, style and comment blocks in linear time (#7770)
* perf(lint): rules scan script, style and comment blocks in linear time

Several always-on rules matched open/any/close regexes over the whole
document, which rescan to the end from every unclosed opener, so lint
time grew with the square of the page on pages of unclosed <script,
<style, <pre or /* openers. Those scans are now forward passes in
lint/src/linearScans.ts that return exactly what the regexes did:
block-comment stripping, the malformed </script check, the style-tag
balance count, the visible-comment rule's protected blocks and tag
tracking, the structural line count, the script-src check, and the
slideshow island lookup.

A fuzz test compares each scan with its regex on 20,000 generated pages,
and 4 MB pages of unclosed openers finish in milliseconds. On a 140 KB
page of unclosed <script> openers lintHyperframeHtml drops from about
2.6 s to 45 ms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(lint): compare each fuzz page in one assertion so the run fits the default timeout

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(player): raise the packed size budget for the bundled slideshow island scan

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 23:43:21 +00:00

63 lines
1.2 KiB
JSON

{
"@hyperframes/aws-lambda": {
"packed": 78851,
"unpacked": 290508
},
"@hyperframes/cli": {
"packed": 8577627,
"unpacked": 25159107
},
"@hyperframes/core": {
"packed": 1762752,
"unpacked": 4374000
},
"@hyperframes/engine": {
"packed": 490452,
"unpacked": 1643000
},
"@hyperframes/gcp-cloud-run": {
"packed": 49412,
"unpacked": 170124
},
"@hyperframes/inspector": {
"packed": 880000,
"unpacked": 3722000
},
"@hyperframes/lint": {
"packed": 191022,
"unpacked": 737342
},
"@hyperframes/parsers": {
"packed": 203731,
"unpacked": 885314
},
"@hyperframes/player": {
"packed": 159000,
"unpacked": 541601
},
"@hyperframes/producer": {
"packed": 890000,
"unpacked": 3245000
},
"@hyperframes/sdk": {
"packed": 90662,
"unpacked": 325069
},
"@hyperframes/shader-transitions": {
"packed": 212864,
"unpacked": 825937
},
"@hyperframes/share": {
"packed": 148738,
"unpacked": 575775
},
"@hyperframes/studio": {
"packed": 6589635,
"unpacked": 26703858
},
"@hyperframes/studio-server": {
"packed": 168500,
"unpacked": 654000
}
}