aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/go-gcc.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-05-29 23:00:45 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2019-05-29 23:00:45 +0100
commite5ccb10ad04e5cc1c44ea4d50a501840927ad70e (patch)
treed0b2dd96111966903022c5a8936a2ab2a4297fcf /gcc/go/go-gcc.cc
parente800d6dc2cb329a1b64bb3af136164910778a40c (diff)
downloadgcc-e5ccb10ad04e5cc1c44ea4d50a501840927ad70e.zip
gcc-e5ccb10ad04e5cc1c44ea4d50a501840927ad70e.tar.gz
gcc-e5ccb10ad04e5cc1c44ea4d50a501840927ad70e.tar.bz2
Optimize filesystem::path::parent_path()
Parsing a complete string is more efficient than appending each component one-by-one. * src/c++17/fs_path.cc (path::parent_path()): Create whole path at once instead of building it iteratively. From-SVN: r271754
Diffstat (limited to 'gcc/go/go-gcc.cc')
0 files changed, 0 insertions, 0 deletions