Regex refactoring
Stephen M. Webb
stephen.webb@bregmasoft.ca
Thu Nov 7 17:05:00 GMT 2013
On 11/07/2013 11:49 AM, Jonathan Wakely wrote:
> I have a few ideas to simplify the regex code and slightly improve
> run-time performance of compiling regexes.
>
> [...]
>
> I'm working on patches to do all of the above, so if anyone can see
> any problems with these ideas let me know before I waste more time on
> it :-)
All those proposed changes look sane to me. A goodly chunk of that code was written before std::move was available (ie.
tr1).
> When we're happy that the regex code is stable and in the right form
> we should consider having explicit instantiations of basic_regex<char>
> exported from the library, and the instantiations of _NFA, _State,
> _Compiler etc. that it needs. I do think the code is pretty stable
> and works well, but we might not want to tie ourselves down to exports
> for GCC 4.9, so maybe for the next release.
This is highly desirable, given the current regex build-time cost.
--
Stephen M. Webb <stephen.webb@bregmasoft.ca>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20131107/a4c27c4c/attachment.sig>
More information about the Libstdc++
mailing list