mirror of
https://github.com/django/django.git
synced 2025-04-03 13:06:49 +00:00
pop(0), which is used to fetch each token, is O(n) in the length of the list. By reversing the list and operating off the end, we can perform next_token(), prepend_token(), and delete_first_token() in constant time.