[Patch] Rewrite regex matchers
Tim Shen
timshen91@gmail.com
Sat Aug 31 02:04:00 GMT 2013
On Fri, Aug 30, 2013 at 9:26 AM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> Hi,
>
> On 08/30/2013 02:05 PM, Tim Shen wrote:
>>
>> + const _TraitsT& _M_traits;
>> + _FlagT _M_flags;
>> + bool _M_is_non_matching;
>> + std::set<_CharT> _M_char_set;
>> + std::set<pair<_StringT, _StringT>> _M_range_set;
>> + _CharClassT _M_class_set;
>
> another, very general comment: now that nothing is decided ABI-wise for
> these features, let's pay attention to the layouts, let's make sure that the
> data members are ordered in the best way to minimize the size. For example,
> when I see a bool sandwiched between big objects something seems at least
> weird... Let's make measurements and optimize for 64-bit but let's double
> check on 32-bit too.
I didn't use any tool to check that, but adjust it by hand. It
shouldn't break anything, but I'll test it again before committing.
On Fri, Aug 30, 2013 at 8:34 AM, Stephen M. Webb
<stephen.webb@bregmasoft.ca> wrote:
> Other than the test case (breaks on mingw32 target) this is looking very sweet.
Could you please show some details?
--
Tim Shen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: matchers.patch
Type: application/octet-stream
Size: 28171 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20130831/54a3975a/attachment.obj>
More information about the Libstdc++
mailing list