Closed
Description
I'm working on fully relanding flutter/engine#45300, which was reverted in flutter/engine#46919 due to performance regression.
Due to how little and trivial production code the original PR touches, I really couldn't figure out the exact line that caused it except through experimentation: I'll reland the changes bit by bit, and perform performance test after each land, since the performance test requires changes to be officially landed on the main branch.