Changes between Initial Version and Version 1 of Ticket #35250


Ignore:
Timestamp:
Feb 24, 2024, 2:15:48 PM (3 months ago)
Author:
Adam Johnson
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35250 – Description

    initial v1  
    55The checks were fetching the uncompiled pattern with `self.regex.pattern`, which makse `LocaleRegexDescriptor`  compile the pattern only to then read the uncompiled pattern from [https://docs.python.org/3.12/library/re.html#re.Pattern.pattern its pattern attribute].
    66
    7 Additionally, `RoutePattern` was calling `_route_to_regex()` twice to fetch its two result variables in different places: once in `__init__()` and again in `_compile()`. This function is non-trivial.
     7Additionally, `RoutePattern` was calling `_route_to_regex()` twice to fetch its two result variables in different places: once in `__init__()` and again in `_compile()` (in the non-translated case). This function has non-trivial cost so avoiding double execution is worth it.
    88
    99Before optimization stats:
Back to Top