Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TranslationModelForm is slow #90

Open
jieter opened this issue Mar 6, 2023 · 0 comments
Open

TranslationModelForm is slow #90

jieter opened this issue Mar 6, 2023 · 0 comments

Comments

@jieter
Copy link
Member

jieter commented Mar 6, 2023

I was profiling import time in a project using django-modeltrans after reading https://adamj.eu/tech/2023/03/02/django-profile-and-improve-import-time/, while I noticed the time it takes to import a forms module containing a form based on TranslationModelForm is somewhat excessive, replacing the use of TranslationModelForm by ModelForm reduced the import time by a factor 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant