summaryrefslogtreecommitdiff
path: root/tests/admin_scripts/complex_app/admin
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-02-08 12:14:30 -0600
committerTim Graham <timograham@gmail.com>2015-02-08 14:57:19 -0500
commitee86bf24d269869012d5538c22d37588cec68685 (patch)
tree18ce1e9f0e1579cb40cdc60ac74c9417b53bc58b /tests/admin_scripts/complex_app/admin
parentb44a56c3080312ab94679a396e6b60a18f9b6463 (diff)
[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 82e0cd15711c7171aed7af5e481967cc721c9642 from master
Diffstat (limited to 'tests/admin_scripts/complex_app/admin')
0 files changed, 0 insertions, 0 deletions