1
0
mirror of https://github.com/django/django.git synced 2024-12-28 12:06:22 +00:00
django/django
Alex Gaynor ee86bf24d2 [1.8.x] Optimized allow_lazy() by not generating a new lazy wrapper on each invocation.
This dramatically improves performance on PyPy. The following benchmark:

python -mtimeit -s "from django.utils.functional import allow_lazy; from django.utils.translation import ugettext_lazy; f = allow_lazy(lambda s: s, str)" "f(ugettext_lazy('abc'))"

goes from 390us per loop to 165us.

Backport of 82e0cd1571 from master
2015-02-08 14:57:19 -05:00
..
apps [1.8.x] Fixed E265 comment style 2015-02-06 09:35:08 -05:00
bin [1.8.x] Removed django-2to3.py 2015-02-06 08:56:01 -05:00
conf [1.8.x] Fixed Persian locale FIRST_DAY_OF_WEEK & DECIMAL/THOUSAND_SEPARATORs. 2015-01-29 13:02:49 -05:00
contrib [1.8.x] Revert "Fixed #24075 -- Prevented running post_migrate signals when unapplying initial migrations of contenttypes and auth" 2015-02-07 20:35:20 +01:00
core Removed unused import 2015-01-14 09:31:24 +01:00
db [1.8.x] Revert "Fixed #24075 -- Prevented running post_migrate signals when unapplying initial migrations of contenttypes and auth" 2015-02-07 20:35:20 +01:00
dispatch [1.8.x] Clarified docstring in dispatch/dispatcher.py 2015-01-23 13:00:24 -05:00
forms [1.8.x] Fixed typos in code comments. 2015-01-20 12:18:29 -05:00
http [1.8.x] Fixed #24240 -- Allowed GZipping a Unicode StreamingHttpResponse 2015-02-03 18:19:06 +01:00
middleware [1.8.x] Removed UpdateCacheMiddleware._session_accessed() 2015-02-01 20:35:57 -05:00
template [1.8.x] Fixed E265 comment style 2015-02-06 09:35:08 -05:00
templatetags
test [1.8.x] Fixed #24197 -- Added clearing of staticfiles caches on settings changes during tests 2015-02-04 10:54:33 -05:00
utils [1.8.x] Optimized allow_lazy() by not generating a new lazy wrapper on each invocation. 2015-02-08 14:57:19 -05:00
views [1.8.x] Caught all exceptions raised by Engine.get_default(). 2015-02-05 20:09:10 +01:00
__init__.py Bumped version to 1.8 alpha 1. 2015-01-16 17:06:32 -05:00
shortcuts.py [1.8.x] Fixed #24168 -- Allowed selecting a template engine in a few APIs. 2015-02-03 08:32:14 +01:00