Re: [PATCH] Micro-optimization to avoid creating temporary path

2018-12-18 Thread Jonathan Wakely
On 18/12/18 15:52 +, Jonathan Wakely wrote: Now that path::operator/=(basic_string_view) works directly from the string argument, instead of constructing a temporary path from the string, it's potentially more efficient to do 'path(x) /= s' instead of 'x / s'. This changes the only relevant p

[PATCH] Micro-optimization to avoid creating temporary path

2018-12-18 Thread Jonathan Wakely
Now that path::operator/=(basic_string_view) works directly from the string argument, instead of constructing a temporary path from the string, it's potentially more efficient to do 'path(x) /= s' instead of 'x / s'. This changes the only relevant place in the library. * src/filesystem/st