Andreas Kling
8497da8a13
LibWeb: Cache CSS::Display on Paintable for O(1) display() lookups
...
Paintable::display() was chasing through layout_node().display() which
goes through computed_values().display() on every call. Since display
never changes after the Paintable is constructed, cache it as a member
set in the constructor.
This was 1.6% of CPU time while playing a YouTube video.
2026-02-21 15:53:22 +01:00
..
2026-02-19 11:27:06 +00:00
2026-02-16 18:49:15 +01:00
2026-02-21 12:37:44 +01:00
2026-02-11 20:02:28 +01:00
2026-02-14 20:22:40 +01:00
2026-02-21 15:53:22 +01:00
2026-02-21 13:56:00 +01:00
2026-02-14 20:22:40 +01:00
2026-02-20 22:01:44 +00:00
2026-02-11 20:02:28 +01:00
2026-02-18 08:02:45 -05:00
2026-02-20 19:11:31 -06:00
2026-02-14 20:22:40 +01:00
2026-02-11 20:02:28 +01:00
2026-02-14 20:22:40 +01:00
2026-02-13 16:47:42 +00:00
2026-02-21 13:56:00 +01:00
2026-02-17 07:40:03 -05:00
2026-02-15 17:47:30 +01:00
2026-02-11 20:02:28 +01:00
2026-02-21 15:53:22 +01:00
2026-02-17 10:48:09 -05:00
2026-02-19 11:27:06 +00:00
2026-02-17 22:17:50 +01:00
2026-02-11 20:02:28 +01:00
2026-02-11 20:02:28 +01:00
2026-02-13 16:47:42 +00:00
2026-02-21 01:02:06 +00:00
2026-02-21 15:53:22 +01:00
2026-02-13 18:34:24 +01:00
2026-02-21 03:51:28 +01:00
2026-02-17 10:24:00 +01:00
2026-01-22 07:05:06 -05:00
2026-02-10 11:58:23 +01:00
2026-02-11 20:02:28 +01:00
2026-02-18 08:02:45 -05:00
2026-02-21 05:12:55 +01:00
2026-02-11 20:02:28 +01:00
2026-02-15 02:36:01 +00:00
2026-02-19 11:27:06 +00:00
2026-02-11 13:28:01 -06:00
2026-02-18 08:02:45 -05:00
2026-02-11 23:57:41 +01:00
2026-02-20 18:41:33 +01:00
2026-02-14 20:22:40 +01:00
2026-02-10 12:21:20 +01:00
2026-02-04 15:08:37 +01:00
2026-02-10 12:21:20 +01:00
2026-02-14 20:22:40 +01:00
2026-02-11 20:02:28 +01:00
2026-02-11 20:02:28 +01:00
2026-02-20 22:01:44 +00:00
2026-02-15 17:47:30 +01:00
2026-02-20 22:01:44 +00:00
2026-02-17 10:51:48 +01:00
2026-02-06 14:18:10 +00:00
2026-02-17 12:25:27 +00:00
2026-02-21 15:53:22 +01:00
2026-02-21 15:53:22 +01:00
2026-02-11 13:28:01 -06:00