#32824: Potential micro-optimisations for NodeList.render -------------------------------------+------------------------------------- Reporter: Keryn Knight | Owner: Keryn Type: | Knight Cleanup/optimization | Status: closed Component: Template system | Version: dev Severity: Normal | Resolution: fixed Keywords: | Triage Stage: Ready for | checkin Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Mariusz Felisiak <felisiak.mariusz@…>):
* status: assigned => closed * resolution: => fixed Comment: In [changeset:"854e9b066850b9b4eb1171966e996322b2c16d27" 854e9b0]: {{{ #!CommitTicketReference repository="" revision="854e9b066850b9b4eb1171966e996322b2c16d27" Fixed #32824 -- Improved performance of NodeList.render(). This avoids the following: - checking that each item in the nodelist is a subclass of Node, - calling str() on the render_annotated() output, because it's documented that Node.render() must return a string, - calling mark_safe() on the output, when the value to be wrapped is definitively known to be a string because the result of ''.join() is always of that type, - using an intermediate list to store each individual string. }}} -- Ticket URL: <https://code.djangoproject.com/ticket/32824#comment:8> 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.dca446b5f18f93a8f8abc317ae87c4a7%40djangoproject.com.