Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Perl regexp matching is slow??

by diotalevi (Canon)
on Feb 02, 2007 at 16:29 UTC ( [id://597959]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl regexp matching is slow??
in thread Perl regexp matching is slow??

I think you'll find it difficult to abort the regexp engine since perl's safe-signals can be caught before and after the pattern match but not during. If you were using POSIX::sigaction, perhaps.

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Replies are listed 'Best First'.
Re^3: Perl regexp matching is slow??
by TimToady (Parson) on Feb 02, 2007 at 19:12 UTC
    Why not make long-running instructions like pattern matches check for safe signals periodically?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-28 12:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found