1
0
mirror of https://github.com/django/django.git synced 2024-12-29 04:26:28 +00:00
django/django/utils
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
..
translation Fixed #24073 -- Returned None for get_language when translations are deactivated 2015-01-08 17:43:07 +01:00
__init__.py
_os.py Raised SuspiciousFileOperation in safe_join. 2014-11-11 19:05:14 +01:00
archive.py
autoreload.py [1.8.x] Removed threading fallback imports. 2015-02-01 18:45:01 -05:00
baseconv.py
cache.py
checksums.py Fixed #23613 -- Deprecated django.utils.checksums 2014-10-10 09:22:20 -04:00
crypto.py Fixed #23812 -- Changed django.utils.six.moves.xrange imports to range 2014-12-13 12:45:58 -05:00
daemonize.py
datastructures.py Fixed #23968 -- Replaced list comprehension with generators and dict comprehension 2014-12-08 07:58:23 -05:00
dateformat.py
dateparse.py Fixed #2443 -- Added DurationField. 2014-12-20 18:28:29 +00:00
dates.py
datetime_safe.py Fixed #23998 -- Added datetime.time support to migrations questioner. 2014-12-22 07:24:54 -05:00
deconstruct.py Fixed #23866 -- Harmonized refs to Django documentation from code 2014-12-25 13:53:13 +01:00
decorators.py Fixed typo in django/utils/decorators.py comment. 2014-11-24 10:45:29 -05:00
deprecation.py
dictconfig.py Fixed #23968 -- Replaced list comprehension with generators and dict comprehension 2014-12-08 07:58:23 -05:00
duration.py Fixed #2443 -- Added DurationField. 2014-12-20 18:28:29 +00:00
encoding.py Fixed #23968 -- Replaced list comprehension with generators and dict comprehension 2014-12-08 07:58:23 -05:00
feedgenerator.py
formats.py Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282. 2014-09-29 00:01:38 +07:00
functional.py [1.8.x] Optimized allow_lazy() by not generating a new lazy wrapper on each invocation. 2015-02-08 14:57:19 -05:00
html_parser.py Added a dummy class for HTMLParserError; refs #23763. 2014-11-05 09:54:35 -05:00
html.py Fixed #23831 -- Supported strings escaped by third-party libs in Django. 2014-12-27 18:02:34 +01:00
http.py Fixed is_safe_url() to handle leading whitespace. 2015-01-13 13:03:06 -05:00
importlib.py
ipv6.py Fixed #23812 -- Changed django.utils.six.moves.xrange imports to range 2014-12-13 12:45:58 -05:00
itercompat.py
jslex.py Added unicode_literals to the jslexer. 2014-10-15 15:09:35 +02:00
log.py Removed redundant numbered parameters from str.format(). 2014-12-03 14:27:38 -05:00
lorem_ipsum.py
lru_cache.py
module_loading.py Fixed #23670 -- Prevented partial import state during module autodiscovery 2014-10-31 08:01:47 -04:00
numberformat.py [1.8.x] Fixed #24181 -- Fixed multi-char THOUSAND_SEPARATOR insertion 2015-02-08 20:09:04 +01:00
regex_helper.py [1.8.x] Fixed typos in code comments. 2015-01-20 12:18:29 -05:00
safestring.py Fixed #23831 -- Supported strings escaped by third-party libs in Django. 2014-12-27 18:02:34 +01:00
six.py Updated six to 1.9.0. 2015-01-02 12:35:41 -05:00
synch.py [1.8.x] Removed threading fallback imports. 2015-02-01 18:45:01 -05:00
termcolors.py Fixed #23968 -- Replaced list comprehension with generators and dict comprehension 2014-12-08 07:58:23 -05:00
text.py [1.8.x] Fixed #24242 -- Improved efficiency of utils.text.compress_sequence() 2015-02-04 15:17:22 -05:00
timesince.py
timezone.py Simplified caching of get_default_timezone(). 2014-11-19 21:35:39 +01:00
tree.py Fixed #23968 -- Replaced list comprehension with generators and dict comprehension 2014-12-08 07:58:23 -05:00
tzinfo.py
unittest.py
version.py Fixed #23866 -- Harmonized refs to Django documentation from code 2014-12-25 13:53:13 +01:00
xmlutils.py