yakra / DataProcessing

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

compute_stats_t micro-optimization #206

Closed yakra closed 2 years ago

yakra commented 2 years ago

The same principle behind Python's t_system_dict applies here: https://github.com/yakra/DataProcessing/blob/04270e490c3355743570f68406f7cfb5c27b0709/siteupdate/cplusplus/classes/HighwaySegment/compute_stats_t.cpp#L20-L24

...only with less pronounced effects since there are fewer redundant lookups to remove.

yakra commented 2 years ago

close this in favor of the upcoming larger-scope unordered_map issue

yakra commented 2 years ago

This can be handled under the more general #216.

yakra commented 2 years ago

Although, the ability to remove the at call & keep just the one [] call makes the need to create a reference unnecessary.