After migrating a Terraform codebase to OpenTofu, tofu plan slowed from 1-2 minutes to 15-30 minutes (25 minutes in CI) on roughly 700 AWS resources across many modules. TFLOG trace showed almost all the time went into the attachDataResourceDependsOnTransformer graph step. The slowness concentrated on modules connected with dependson between resources in different modules. The same configuration planned fast under Terraform 1.8.4.