Fixed #22867 Pickling models is slow in alpha versions #2829

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
3 participants
Contributor

Suor commented Jun 19, 2014

No description provided.

@Suor Suor Memoize django.utils.version.get_version()
To not create a git subprocess on each version check in alpha djangos.
6fd552f

@loic loic commented on an outdated diff Jun 19, 2014

django/utils/version.py
+
+@lru_cache(maxsize=None)
@loic

loic Jun 19, 2014

Member

How about @lru_cache on get_git_changeset() instead? I'm not a huge fan of @lru_cache with maxsize=None in general.

Contributor

Suor commented Jun 19, 2014

Moved @lru_cache() to get_git_changeset()

Owner

timgraham commented Jun 19, 2014

merged in 80f4487, thanks.

timgraham closed this Jun 19, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment