develooper Front page | perl.perl5.porters | Postings from July 2013

[perl #18268] (a|b)* cant match a string larger than 2**15-1 chars long.

Thread Next
From:
Father Chrysostomos via RT
Date:
July 27, 2013 07:03
Subject:
[perl #18268] (a|b)* cant match a string larger than 2**15-1 chars long.
Message ID:
rt-3.6.HEAD-2552-1374908608-1529.18268-15-0@perl.org
On Sun Oct 14 16:06:33 2012, hv wrote:
> It is fixable, and I believe eventually it'll have to be fixed - as
> computational power and size of typical strings increases, it is a
> constraint that will seem increasingly restrictive.
> 
> I just don't know (quite) how, or when.

Hopefully soon.

I’m trying to write tests for perl’s anchored string optimisation with
large strings.  But I’m having to write things like this:

(?:(?:.{32766}){32766}){2}(?:.{32766}){8}.{8}

This is a bit annoying. :-)

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=18268

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About