5 | | Profiling the system checks on a project with 118 models revealed this property was taking ~15% of the total runtime, taking 10ms across 420 calls. Turning it into a `cached_property` and adding a no-translation fast path saves nearly all this cost, making it take <1ms across 105 calls. |
| 5 | I found this property was taking ~15 of the total runtime for system checks on a project with 118 models. calls. Turning it into a `cached_property` and adding a no-translation fast path saves nearly all this cost, with the below results. |
| 6 | |
| 7 | Before: 520 calls taking 10ms |
| 8 | After: 105 calls taking ~0ms |