Changes between Initial Version and Version 1 of Ticket #35250
- Timestamp:
- Feb 24, 2024, 2:15:48 PM (10 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35250 – Description
initial v1 5 5 The 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]. 6 6 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.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()` (in the non-translated case). This function has non-trivial cost so avoiding double execution is worth it. 8 8 9 9 Before optimization stats: