| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
There was a problem hiding this comment.
@serhiy-storchaka
I think that this PR is worth to review :) Can you please take a look?
Sorry, something went wrong.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
Speed up test_urlsplit_normalization (pythonGH-26688)
|
Thank you for your contribution @jacobtylerwalls. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Noticed while working on #26687 that one of the tests in test_urlparse took ~7s. Here I've short-circuited the filtering of a massive list comprehension (sys.maxunicode for me is 1,114,111) by checking if not empty before running split(), set(), &, etc.
LMK if this needs a ticket.
$ ./python.exe -m unittest test.test_urlparse.UrlParseTestCase.test_urlsplit_normalization
Before
Ran 1 test in 6.981s
After
Ran 1 test in 2.459s