Changes between Version 1 and Version 6 of Ticket #35232


Ignore:
Timestamp:
Feb 20, 2024, 4:36:21 PM (7 months ago)
Author:
Adam Johnson
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35232

    • Property Owner changed from nobody to Adam Johnson
    • Property Triage Stage UnreviewedReady for checkin
    • Property Resolutionfixed
    • Property Status assignedclosed
  • Ticket #35232 – Description

    v1 v6  
    33The `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.
    44
    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.
     5I 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.
    66
    77Before: 520 calls taking 10ms
Back to Top