Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: Perl vs C

by chromatic (Archbishop)
on Mar 16, 2009 at 18:08 UTC ( [id://750973]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Perl vs C
in thread Perl vs C

Many of these algorithms are for arbitrary string searching; it's difficult to outperform Perl's regex engine. (Please note that the portion of my post which you did not quite implied that you can't pull in PCRE.) I suspect, but can't immediately prove, that code heavy with malloc/free temporary data may reach a point where it's faster in Perl than in C, but that depends on overcoming the overhead of op dispatch in Perl.

Replies are listed 'Best First'.
Re^6: Perl vs C
by assemble (Friar) on Mar 17, 2009 at 13:21 UTC

    Thanks.

    Most of my work is binary data crunching, and that's not exactly Perl's strongest suit. Perhaps if I was doing a large amount of work with text processing I would have noticed the performance increase.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2026-01-18 22:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (122 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.