#4461: minor ForNode.render reversed optimization -----------------------------------------------+---------------------------- Reporter: Brian Harring <[EMAIL PROTECTED]> | Owner: adrian Status: new | Component: Template system Version: SVN | Keywords: Stage: Unreviewed | Has_patch: 1 -----------------------------------------------+---------------------------- short version, nestled snuggly in django.template.defaulttags.ForNode.render is a homebrewed native reverse implementation; aside from it using range when it should be using xrange, this is fine for <py2.4; for >=py2.4 however, the builtin reversed should be used (fair bit faster among other things). So... attached is a patch doing just that.
-- Ticket URL: <http://code.djangoproject.com/ticket/4461> Django Code <http://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 post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
