Re: [libstdc++] Optimize string constructors

2025-01-15 Thread Jonathan Wakely
On Fri, 13 Dec 2024 at 14:01, Jan Hubicka wrote: > > Hi, > this patch improves code generation on string constructors. We currently have > _M_construct which takes as a parameter two iterators (begin/end pointers to > other string) and produces new string. This patch adds special case of > const

[libstdc++] Optimize string constructors

2024-12-13 Thread Jan Hubicka
Hi, this patch improves code generation on string constructors. We currently have _M_construct which takes as a parameter two iterators (begin/end pointers to other string) and produces new string. This patch adds special case of constructor where instead of begining/end pointers we readily know