yakra / DataProcessing

Data Processing Scripts and Programs for Travel Mapping Project
0 stars 0 forks source link

userlog route updates: speed #202

Closed yakra closed 2 years ago

yakra commented 2 years ago

Will changing routes.insert(r).second && r->last_update to r->last_update && routes.insert(r).second etc. yield a noticeable speed increase?

yakra commented 2 years ago

Nope. Failing to insert the route into the set results in missing "long list" entries @ end of log file.

yakra commented 2 years ago

Yep! The insertions didn't take place because: The one line changed was the one in Route.cpp, and the insertion was put after the update time comparison. If only the two args mentioned in the OP are swapped, we're fine.