Ticket #697 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Changed 3 years ago by scoder

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.