Opened 5 years ago

Closed 5 years ago

#697 closed enhancement (fixed)

Optimise reversed()

Reported by: scoder Owned by: scoder
Priority: major Milestone: 0.15
Component: Optimization Keywords:


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 (1)

comment:1 Changed 5 years ago by scoder

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