This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Regex refactoring


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>

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]