Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: regex on gigabyte string

by Athanasius (Abbot)
on Jan 26, 2013 at 16:30 UTC ( #1015511=note: print w/ replies, xml ) Need Help??


in reply to regex on gigabyte string

Hello focusonz, and welcome to the Monastery!

Do you need @celltags to be fully populated before proceeding? If not, it might be worth trying:

while (m{(<c.*?/c>)}g) { # Process $1... }

Just a thought (untested). Hope it helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,


Comment on Re: regex on gigabyte string
Select or Download Code
Replies are listed 'Best First'.
Re^2: regex on gigabyte string
by focusonz (Initiate) on Jan 26, 2013 at 18:52 UTC

    Tried that but took interminably long execution time even on the 1GB string.

    The my @celltags = ($bigstring =~ /(<c.*?\/c>)/g); executed quickly on 1GB strings.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015511]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (17)
As of 2015-07-30 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls