mirror of
https://github.com/django/django.git
synced 2024-12-28 12:06:22 +00:00
ee86bf24d2
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
|
||
---|---|---|
.. | ||
apps | ||
bin | ||
conf | ||
contrib | ||
core | ||
db | ||
dispatch | ||
forms | ||
http | ||
middleware | ||
template | ||
templatetags | ||
test | ||
utils | ||
views | ||
__init__.py | ||
shortcuts.py |