Ticket #697 (closed enhancement: fixed)
Optimise reversed()
| Reported by: | scoder | Owned by: | scoder |
|---|---|---|---|
| Priority: | major | Milestone: | 0.15 |
| Component: | Optimization | Keywords: | |
| Cc: |
Description
On iteration, the builtin reversed() function can be reinterpreted as a hint to the looping optimiser in many cases, in order to generate well adapted looping code instead of generic Python iteration code. A good example is reversed(list/tuple) where the fast indexing loop can simply start from the end.
Change History
Note: See
TracTickets for help on using
tickets.
