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
Eventually, the need for these macros will go away entirely. But that's a heavyweight operation that'll take some time to get around to. In the interim, could this maybe have an effect if it's easier on instruction cache? Edit: Deleted in 897c231. No need for a lambda.
Eventually, HGEdge::detach may go away entirely (another heavyweight opeation). If this does help in the interim; it'll be low-impact; edge compression is already pretty fast and may get faster. Edit: It's still here, just smaller & called less often. The lambda is invoked twice, as opposed to the macro being invoked 6 times.
macros
-Some random person on the internet.
While not 100% the case across the board, there's some truthiness to it.
Lambdas will work in many cases. Advantages include:
Can't get rid of all of them, but here are some candidates:
DataProcessing/siteupdate/cplusplus/functions/sql_file.cpp
Line 496 in 387c99b
DataProcessing/siteupdate/cplusplus/classes/HighwaySystem/route_integrity.cpp
Line 17 in 387c99b
DataProcessing/siteupdate/cplusplus/classes/Waypoint/Waypoint.cpp
Line 203 in 387c99b
DataProcessing/siteupdate/cplusplus/classes/Waypoint/Waypoint.cpp
Line 490 in 387c99b
DataProcessing/siteupdate/cplusplus/classes/Route/read_wpt.cpp
Line 55 in 387c99b
DataProcessing/siteupdate/cplusplus/classes/Args/Args.cpp
Line 30 in 387c99b
Edit: Deleted in 897c231. No need for a lambda.
DataProcessing/siteupdate/cplusplus/classes/GraphGeneration/get_subgraph_data.cpp
Lines 38 to 39 in 387c99b
Edit: It's still here, just smaller & called less often. The lambda is invoked twice, as opposed to the macro being invoked 6 times.
DataProcessing/siteupdate/cplusplus/classes/GraphGeneration/HGEdge.cpp
Lines 122 to 127 in 387c99b
DataProcessing/siteupdate/cplusplus/classes/TravelerList/TravelerList.cpp
Lines 126 to 129 in 387c99b
other stuff
A couple examples are above already, but in general, look for
Datacheck::add
.grep -n 'sort([^)]' \`find . -name \*.cpp`
sort_1st_csv_field
reduces binary size 144 B.sort_route_updates_oldest
sort_root_at_label
(5x)?The text was updated successfully, but these errors were encountered: