Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Python regex faster than Perl?

by duelafn (Parson)
on Mar 27, 2025 at 11:59 UTC ( [id://11164462]=note: print w/replies, xml ) Need Help??


in reply to Python regex faster than Perl?

In the past whenever I benchmarked perl against python in practical applications that I cared about, perl would win. However, python has been on a major performance binge for the past several years,

I've since stopped benchmarking perl vs python (I've picked up rust which I use when I care about performance), but I imagine that python has sped up relative to perl and is likely faster in more situations that it once was (depending, of course, on exactly what you are doing and how you code your algorithms).

Good Day,
    Dean

Replies are listed 'Best First'.
Re^2: Python regex faster than Perl?
by Fletch (Bishop) on Mar 27, 2025 at 16:21 UTC

    There's been a decision at $WORK to move things to python so I've been (reluctantly) picking the minimal amount I know back up and there are some "nice" things in their ecosystem. I've never really used PDL but pandas is pretty handy for CSV/spreadsheet-y stuff, not to mention polars which peps things up with rust under the hood while being mostly interoperable where not a direct drop-in replacement. The language is still bletcherous, but thanks to hylang you can write in a lisp and hide some of the warts. We're stuck at 3.9 for $REASONS but I'm interested what things look like when we eventually catch up to 3.13.

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2026-05-13 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    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.