You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that in many cases range for loops are less efficient than traditional for loops using an iterator.
Search for & investigate cases where this conversion can be made.
Start with Performing data checks...
Idea: Will converting for (foo bar : baz) to for (foo &bar : baz) yield similar improvements?
If so: Could it also improve some loops currently implemented with iterators?
Activity
yakra commentedon Apr 28, 2019
userlog.cpp clean as of fb94c99
yakra commentedon Dec 12, 2019
See also: TravelMapping#270
yakra commentedon May 2, 2020
not range, but consider tidying up lower & upperNo, that just adds to the commit history for no real gain.
yakra commentedon May 14, 2020
Good to close, save for one final question:
Ranges in a container of pointers were not changed. Could converting this have any effect on the innermost loops that are repeated loads of times?