Ticket #45542

Avoid advance_count() calls in advance_index_iterate() within outer iteration

Open Date: 2022-09-01 10:33 Last Update: 2022-09-24 15:34

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
1

Details

Something that came out while looking at #45541: advance_count() in advance_index_iterate() is often called repeatedly as advance_index_iterate() itself is used repeatedly.

Changing that would both be a minor optimization (removal of the funcfion call overhead) and make compiler and other tools better able to analyze the code (now they have to be prepared to the possibility that consequtive advance_count() calls return different results)

Ticket History (3/5 Histories)

2022-09-01 10:33 Updated by: cazfi
  • New Ticket "Avoid advance_count() calls in advance_index_iterate() within outer iteration" created
2022-09-05 08:05 Updated by: cazfi
  • Milestone Update from (None) to 3.2.0
2022-09-18 13:12 Updated by: cazfi
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
2022-09-24 15:34 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login