[Patch] Patch set for regex instantiation

Jonathan Wakely jwakely@redhat.com
Sun Jun 29 17:18:00 GMT 2014


On 11/01/14 19:48 -0500, Tim Shen wrote:
>Here're 4 patches that finally led the _Compiler's instantiation and
>some other optimization for compiling time.
>
>1) Create class _ScannerBase to make _Scanner pithier. Move const
>static members to src/c++11/regex.cc.

I think it might be time to revisit this change and put the data
members of _ScannerBase into the .so, as we're creating and
initializing 136 bytes of duplicated constants every time we construct
a std::regex.

Alternatively, we could just make them local statics instead of member
data and still remove the duplciation (see attached).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 4218 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20140629/8cff5b98/attachment.bin>


More information about the Libstdc++ mailing list