Bug 232176 - Improve performance of nested grids
Summary: Improve performance of nested grids
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-22 14:21 PDT by Tim Nguyen (:ntim)
Modified: 2024-04-08 01:38 PDT (History)
19 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Radar WebKit Bug Importer 2021-10-29 14:22:19 PDT
<rdar://problem/84823492>
Comment 2 Ulrich Dobiasch 2022-09-23 06:17:49 PDT
Safari 16 – still present – 15+ nested grids and the cpu is stalling
Comment 3 Michael 2023-09-28 08:08:40 PDT
Safari 17 – still present – 15+ nested grids and the cpu is stalling
Comment 4 Mendel Gordon 2024-02-12 06:33:35 PST
See https://web.archive.org/web/20211008182612/https://developer.chrome.com/blog/layoutng/ since the original link is dead 
(In reply to Tim Nguyen (:ntim) from comment #0)
> See: http://exponential-layout.glitch.me
> 
> From: https://developer.chrome.com/blog/layoutng/
Comment 5 tobias47n9e@gmail.com 2024-02-12 08:12:01 PST
Just a comment regarding importance:

Would be nice to see this get higher priority. Grid is used for so many layout problems now, and the developer pain of having to remove all that just for Webkit based browsers is incredible.
Comment 6 Ahmad Saleem 2024-03-26 14:56:12 PDT
I tested this post 276633@main and now this test can be pushed to 100+ without any issue on M1 Pro with 16 GB.

Change progressing this - https://commits.webkit.org/276633@main

@Sammy - should we mark this duplicate of other bug?
Comment 7 Manuel Rego Casasnovas 2024-04-08 01:38:02 PDT
(In reply to Ahmad Saleem from comment #6)
> I tested this post 276633@main and now this test can be pushed to 100+
> without any issue on M1 Pro with 16 GB.
> 
> Change progressing this - https://commits.webkit.org/276633@main
> 
> @Sammy - should we mark this duplicate of other bug?

I can confirm this behavior, without that patch my computer starts to struggle around adding the 15th layer (or earlier). With that patch I've managed to add >150 layers easily.