#25750: During makemigrations Options._expire_cache takes 30% of the time --------------------------------------+------------------------------------ Reporter: patrys | Owner: patrys Type: Cleanup/optimization | Status: new Component: Migrations | Version: 1.8 Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 --------------------------------------+------------------------------------ Changes (by knbk):
* stage: Ready for checkin => Accepted Comment: Can you get a similar result using actual timing functions such as `timeit`? I've looked into this before, and if my memory serves me right the results of profiling in this case are highly skewed, and the actual improvements are barely noticeable. Another thing to keep in mind is that #24397 greatly reduces the number of calls to `_expire_cache()`. -- Ticket URL: <https://code.djangoproject.com/ticket/25750#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.bb566f654bd3ab6a48b447795ba38f76%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.