feat: add caching for timezone offsets, significantly speeds up import #1250
65.38% of diff hit (target 98.14%)
View this Pull Request on Codecov
65.38% of diff hit (target 98.14%)
Annotations
Check warning on line 112 in dateparser/timezone_parser.py
codecov / codecov/patch
dateparser/timezone_parser.py#L111-L112
Added lines #L111 - L112 were not covered by tests
Check warning on line 117 in dateparser/timezone_parser.py
codecov / codecov/patch
dateparser/timezone_parser.py#L114-L117
Added lines #L114 - L117 were not covered by tests
Check warning on line 120 in dateparser/timezone_parser.py
codecov / codecov/patch
dateparser/timezone_parser.py#L119-L120
Added lines #L119 - L120 were not covered by tests
Check warning on line 130 in dateparser/timezone_parser.py
codecov / codecov/patch
dateparser/timezone_parser.py#L130
Added line #L130 was not covered by tests