Re: [PATCH] PR libstdc++/71044 optimize std::filesystem::path construction

2018-12-17 Thread Jonathan Wakely
On 13/12/18 20:34 +, Jonathan Wakely wrote: Construction and modification of paths is now done more efficiently, by splitting the input into a stack-based buffer of string_view objects instead of a dynamically-allocated vector containing strings. Once the final size is known only

Re: [PATCH] PR libstdc++/71044 optimize std::filesystem::path construction

2018-12-13 Thread Jonathan Wakely
On 12/12/18 17:22 +, Jonathan Wakely wrote: This new implementation has a smaller footprint than the previous implementation, due to replacing std::vector<_Cmpt> with a custom pimpl type that only needs a single pointer. The _M_type enumeration is also combined with the pimpl type, by using a