[Django] #25996: Remove the Performance section in topics/http/urls

33 views
Skip to first unread message

Django

unread,
Dec 28, 2015, 11:49:15 PM12/28/15
to django-...@googlegroups.com
#25996: Remove the Performance section in topics/http/urls
--------------------------------------+--------------------
Reporter: uranusjr | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+--------------------
The section, written back in the 0.9 days during 2005, goes:

> Each regular expression in a `urlpatterns` is compiled the first time
it’s accessed. This makes the system blazingly fast.

https://docs.djangoproject.com/en/dev/topics/http/urls/#performance

While the first part of the sentence is true, it does not serve as a
reason why the dispatcher is blazingly fast. And the general public
perception these days is almost the opposite: Django’s URL dispatcher is
thought to be between “not fast” and “slow”, depending on what standard
you compare it against.

While I am happy with Django’s URL dispatcher, and certainly don’t have
anything to complain, it might be a good idea to remove the ten-year-old
statement that is not valid anymore.

--
Ticket URL: <https://code.djangoproject.com/ticket/25996>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 29, 2015, 1:07:03 AM12/29/15
to django-...@googlegroups.com
#25996: Remove the Performance section in topics/http/urls
-------------------------------------+-------------------------------------
Reporter: uranusjr | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by PramodBisht):

* cc: pramodpsb@… (added)
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/25996#comment:1>

Django

unread,
Dec 29, 2015, 5:54:32 AM12/29/15
to django-...@googlegroups.com
#25996: Revise the Performance section in topics/http/urls
--------------------------------------+------------------------------------

Reporter: uranusjr | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by timgraham):

* cc: knbk (added)
* easy: 1 => 0
* stage: Unreviewed => Accepted


Comment:

I'd suggest to revise the section to describe what parts of the URL system
are fast (routing URLs, I think) and what parts are slow (reversing URLs,
I think). There are probably other considerations. Marten might be in a
good position to do this since he's been working on some
[https://github.com/django/django/pull/5578 URL dispatcher changes].

--
Ticket URL: <https://code.djangoproject.com/ticket/25996#comment:2>

Django

unread,
Jul 3, 2016, 9:33:15 AM7/3/16
to django-...@googlegroups.com
#25996: Revise the Performance section in topics/http/urls
--------------------------------------+------------------------------------
Reporter: uranusjr | Owner: j-shu
Type: Cleanup/optimization | Status: assigned
Component: Documentation | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by j-shu):

* owner: nobody => j-shu
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/25996#comment:3>

Django

unread,
Jul 3, 2016, 2:52:46 PM7/3/16
to django-...@googlegroups.com
#25996: Revise the Performance section in topics/http/urls
--------------------------------------+------------------------------------
Reporter: uranusjr | Owner: j-shu
Type: Cleanup/optimization | Status: assigned
Component: Documentation | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by j-shu):

* has_patch: 0 => 1


Comment:

PR on: https://github.com/django/django/pull/6879

--
Ticket URL: <https://code.djangoproject.com/ticket/25996#comment:4>

Django

unread,
Jul 8, 2016, 2:57:27 PM7/8/16
to django-...@googlegroups.com
#25996: Revise the Performance section in topics/http/urls
--------------------------------------+------------------------------------
Reporter: uranusjr | Owner: j-shu
Type: Cleanup/optimization | Status: assigned
Component: Documentation | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by timgraham):

* needs_better_patch: 0 => 1


Comment:

Comments for improvement are on the PR.

--
Ticket URL: <https://code.djangoproject.com/ticket/25996#comment:5>

Django

unread,
Apr 21, 2021, 4:44:17 AM4/21/21
to django-...@googlegroups.com
#25996: Revise the Performance section in topics/http/urls
--------------------------------------+------------------------------------
Reporter: Tzu-ping Chung | Owner: (none)
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: dev

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* owner: j-shu => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/25996#comment:6>

Django

unread,
Oct 6, 2022, 1:54:37 PM10/6/22
to django-...@googlegroups.com
#25996: Revise the Performance section in topics/http/urls
-------------------------------------+-------------------------------------
Reporter: Tzu-ping Chung | Owner: Ralph
Type: | Reid
Cleanup/optimization | Status: assigned

Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Ralph Reid):

* owner: (none) => Ralph Reid


* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/25996#comment:7>

Django

unread,
Oct 7, 2022, 9:04:29 AM10/7/22
to django-...@googlegroups.com
#25996: Revise the Performance section in topics/http/urls
-------------------------------------+-------------------------------------
Reporter: Tzu-ping Chung | Owner: Ralph
Type: | Reid
Cleanup/optimization | Status: assigned
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Carlton Gibson):

[https://github.com/django/django/pull/16159 New quite minimal patch
submitted here]

--
Ticket URL: <https://code.djangoproject.com/ticket/25996#comment:8>

Django

unread,
Oct 7, 2022, 9:04:36 AM10/7/22
to django-...@googlegroups.com
#25996: Revise the Performance section in topics/http/urls
-------------------------------------+-------------------------------------
Reporter: Tzu-ping Chung | Owner: Ralph
Type: | Reid
Cleanup/optimization | Status: assigned
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/25996#comment:9>

Django

unread,
Oct 10, 2022, 1:57:57 AM10/10/22
to django-...@googlegroups.com
#25996: Revise the Performance section in topics/http/urls
-------------------------------------+-------------------------------------
Reporter: Tzu-ping Chung | Owner: Ralph
Type: | Reid
Cleanup/optimization | Status: assigned
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/25996#comment:10>

Django

unread,
Oct 10, 2022, 2:29:34 AM10/10/22
to django-...@googlegroups.com
#25996: Revise the Performance section in topics/http/urls
-------------------------------------+-------------------------------------
Reporter: Tzu-ping Chung | Owner: Ralph
Type: | Reid
Cleanup/optimization | Status: closed
Component: Documentation | Version: dev
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"d3579ca1124a163cad760558e8d138984e7a10b4" d3579ca1]:
{{{
#!CommitTicketReference repository=""
revision="d3579ca1124a163cad760558e8d138984e7a10b4"
Fixed #25996 -- Revised performance section in URLs topic docs.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25996#comment:11>

Django

unread,
Oct 10, 2022, 2:29:59 AM10/10/22
to django-...@googlegroups.com
#25996: Revise the Performance section in topics/http/urls
-------------------------------------+-------------------------------------
Reporter: Tzu-ping Chung | Owner: Ralph
Type: | Reid
Cleanup/optimization | Status: closed
Component: Documentation | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"950a84ce42e087a665449a1323e868d6660efbeb" 950a84ce]:
{{{
#!CommitTicketReference repository=""
revision="950a84ce42e087a665449a1323e868d6660efbeb"
[4.1.x] Fixed #25996 -- Revised performance section in URLs topic docs.

Backport of d3579ca1124a163cad760558e8d138984e7a10b4 from main
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25996#comment:12>

Reply all
Reply to author
Forward
0 new messages