totalChanges() optimizations