Many (all?) of the csv_line functions could probably become voids that insert multiple C strings directly into the ofstream.
HighwaySegment::csv_line for example has 8 concatenation + operators. All this copying & re-copying gets expensive.
While in there, also check out TravelMapping#324
Many (all?) of the
csv_linefunctions could probably becomevoids that insert multiple C strings directly into the ofstream.HighwaySegment::csv_linefor example has 8 concatenation+operators. All this copying & re-copying gets expensive.While in there, also check out TravelMapping#324