PERF: 2x ~ 30x faster dirty tracking
#35933

kamipo wants to merge kamipo:refactor_dirty_tracking into rails:master

We do not currently have an analysis of these two commits