mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-04-01 18:28:31 +00:00
Change from 4 vectors of u8 to a single vector of a struct of 4 u8. Since all the accesses are on the same indicies into each vector the cache pressure is decreased by co-locating the data. When scrolling up and down in the `box-shadow` example page the profile changes from about 75% of the function calls being in `apply_single_pass()` to only about 70% on my machine.