﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35467	Prefer urlsplit() over urlparse()	Adam Johnson	nobody	"Many places in Django use [`urlparse()`](https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlparse), which supports the rarely-used “path parameter” syntax (not to be confused with query parameters). The `urlsplit()` function is similar but does not parse such path parameters, which makes it a bit faster.

I think most or all calls to `urlparse()` can be replaced with `urlsplit()`, and similarly `urlunparse()` with `urlunsplit()`. This may make a small but measurable performance difference in common paths, such as in `CsrfViewMiddleware` or the test `Client`.

See more in this Anthony Sottile video: https://www.youtube.com/watch?v=ABJvdsIANds , where he reports a 3% import time improvement on the Stripe project."	Cleanup/optimization	new	Utilities	dev	Normal				Unreviewed	0	0	0	0	0	0
