Changes between Version 1 and Version 6 of Ticket #35232
- Timestamp:
- Feb 20, 2024, 4:36:21 PM (9 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35232
- Property Owner changed from to
- Property Triage Stage Unreviewed → Ready for checkin
- Property Resolution → fixed
- Property Status assigned → closed
-
Ticket #35232 – Description
v1 v6 3 3 The `Model._meta.verbose_name_raw` property returns the stringified version of the `verbose_name` attribute whilst temporarily disabling translations. It is only used in `django.contrib.auth` for creating permission names. 4 4 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.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 6 7 7 Before: 520 calls taking 10ms