Opened 3 years ago

Closed 3 years ago

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

comment:1 Changed 3 years ago by scoder

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