Landing: 7084db3f6e1c

Project / Subsystem

gcc / libstdc++

Date

2026-07-02

Author

Yuao Ma

Commit

7084db3f6e1cc68b422fdff81c823861d19c01ed

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
libstdc++
patch_id
commit_hash
7084db3f6e1cc68b422fdff81c823861d19c01ed
source_type
github
headline
libstdc++ implements string modifier optimizations for C++.
tldr
C++ string append/assign methods now efficiently handle substrings from C-style strings.
author
Yuao Ma
outcome
committed
performance_win
true
breaking_change
false
series_id
series_parts
[]
tags
  • libstdc++
  • string
  • c++
discussion_id_link
bugzilla_pr
date
2026-07-02T00:00:00.000Z

The libstdc++ library has implemented new overloads for basic_string::append and basic_string::assign. These updates address LWG3662, enabling more efficient handling of operations that append or assign a portion of a null-terminated byte string (NTBS) at a specified position and length, improving performance for common string manipulations.