Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

(tye)RE2: perl

by tye (Sage)
on Nov 10, 2000 at 06:36 UTC ( #40880=note: print w/replies, xml ) Need Help??

in reply to RE: (tye)RE: perl
in thread perl

I don't think you realize what it takes to make the Perl regex engine work. You can't just rip it out of Perl. To make it work you'd probably end up just embedding perl into an executable, which would require even more footprint.

Besides, every good system should have Perl so the footprint you should be comparing is vs. grep.exe (to borrow a file naming convention from a different platform). I think the pendulum will swing the other way. :)

Update: The two grep's weigh in a 16K and 820 bytes (smaller than grep.exe or much, much smaller).

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
RE: (tye)RE2: perl
by eduardo (Curate) on Nov 10, 2000 at 09:21 UTC
    however, the loading time for the 70k grep is going to be 1/10 the loading time for the perl'd grep (perl'd grep requiring the loading of a 700k interpreter as well as the compilation and execution). As powerful as perl is, and even if the script is only 820 bytes, it still has to load the 700k interpreter before it even gets to the grep, by that time, we've loaded the grep and are chugging through the file with the native binary.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://40880]
[Discipulus]: ovedpo15 A subroutine may be called using an explicit & prefix. The & is optional in modern Perl... see perlsub in docs and search for ampersand
[Discipulus]: it has some, even dangerous, implication
[Discipulus]: I still use but I also attract many critics for this: I use when I call subs defined in the very same file, just to recognize them. You can avoid (but sometimes is needed)
[marto]: believe it or not this is a SPAM account :P

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2018-05-22 12:12 GMT
Find Nodes?
    Voting Booth?