r272303 - in /branches/gcc-9-branch/libstdc++-v...

redi@gcc.gnu.org redi@gcc.gnu.org
Fri Jun 14 18:11:00 GMT 2019


Author: redi
Date: Fri Jun 14 18:11:17 2019
New Revision: 272303

URL: https://gcc.gnu.org/viewcvs?rev=272303&root=gcc&view=rev
Log:
Optimize filesystem::path::parent_path()

Parsing a complete string is more efficient than appending each
component one-by-one.

Backport from mainline
2019-05-29  Jonathan Wakely  <jwakely@redhat.com>

	* src/c++17/fs_path.cc (path::parent_path()): Create whole path at
	once instead of building it iteratively.

Modified:
    branches/gcc-9-branch/libstdc++-v3/ChangeLog
    branches/gcc-9-branch/libstdc++-v3/src/c++17/fs_path.cc



More information about the Libstdc++-cvs mailing list