| Summary: | Use of many shadow trees with unique style triggers significant CPU usage and a rise in process size | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Kin Blas <jblas> |
| Component: | CSS | Assignee: | Antti Koivisto <koivisto> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | abucur, koivisto, rniwa, simon.fraser, webkit-bug-importer, zalan |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Mac (Apple Silicon) | ||
| OS: | macOS 13 | ||
| Bug Depends on: | 262891 | ||
| Bug Blocks: | 154907 | ||
| Attachments: | |||
|
Description
Kin Blas
2023-08-30 14:33:49 PDT
Created attachment 467501 [details]
Video demonstrating what we see when running the test case.
Attaching a quick video that shows what we see when running the test case.
The slowness here is caused by bug 262891. The memory growth appears to be a separate issue from that. In trunk it can go over 1GB but at some point it drops down to ~150MB range. I suspect this behavior is GC related. The reason for memory growth is that the style resolver sharing cache in Style::Scope has unlimited size and the test case keeps adding more items there. Low memory handler clears the cache causing memory use to eventually drop. Pull request: https://github.com/WebKit/WebKit/pull/18889 Committed 269142@main (b3c5d420be05): <https://commits.webkit.org/269142@main> Reviewed commits have been landed. Closing PR #18889 and removing active labels. |