yakra / DataProcessing

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

userlog: to_write #229

Closed yakra closed 1 year ago

yakra commented 2 years ago

to_write is a big-ol string that can get pretty hefty with lots of reallocations. Instead: make it a std::vector<double> chopped_mi. chopped_mi.reserve(roots.size() > 1 ? roots.size() : 0) or just roots.size() if the conditional is a bit much and log the components piecemeal.

yakra commented 1 year ago

implemented in 29a6edfddc1132bfac95e0bbc59157f27fade551