Repository navigation
Commit 0ff635c
authored
perf(css): build large CSS data tables lazily (#22385)
* perf(css): build large CSS data tables lazily
Emit the 15 largest tables in lib/css/data.js as memoized getters so a
build parsing CSS never compiles or allocates the ones it doesn't read
(data.js load: 1212 KiB -> 770 KiB retained heap).
Claude-Session: https://claude.ai/code/session_01XkNSr22NpCKQWxEf9aNoS3
* build: update mdn-data to 2.37.1
Regenerate lib/css/data.js: adds the window-drag property.
Claude-Session: https://claude.ai/code/session_01XkNSr22NpCKQWxEf9aNoS3
* build: update @mdn/browser-compat-data to 8.1.4
Regenerate lib/css/data.js with the newer browser support data.
Claude-Session: https://claude.ai/code/session_01XkNSr22NpCKQWxEf9aNoS3
* perf(css): type the shorthand initial keywords getter
Inference gives up on the nested Map literal inside memoize, leaving the
getter untyped; state its type in the generator.
Claude-Session: https://claude.ai/code/session_01XkNSr22NpCKQWxEf9aNoS31 parent 8e3a04d commit 0ff635c
11 files changed
Lines changed: 5381 additions & 5197 deletions
File tree
- .changeset
- lib/css
- test
- specCases
- unitCases
- tooling
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
416 | 419 | | |
417 | 420 | | |
418 | 421 | | |
419 | | - | |
| 422 | + | |
420 | 423 | | |
421 | 424 | | |
422 | 425 | | |
| |||
2272 | 2275 | | |
2273 | 2276 | | |
2274 | 2277 | | |
2275 | | - | |
| 2278 | + | |
2276 | 2279 | | |
2277 | 2280 | | |
2278 | 2281 | | |
| |||
0 commit comments