Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Word replace - notetab light vs perl

by revdiablo (Prior)
on Oct 05, 2005 at 16:10 UTC ( [id://497653]=note: print w/replies, xml ) Need Help??


in reply to Word replace - notetab light vs perl

I'm more amazed that it took 35 seconds in NoteTab light than I am that it only took 2 seconds in perl. 35,000 lines really isn't that much that it should take so long. That's only 1000 lines per second, which I would say is pretty abysmal.

Update: just out of curiosity, I tried doing a single-word replacement on a 35,000 line file (where every line has the word being replaced) in vim. Like your case, I don't know any way to get vim to time it for me, but based on wallclock seconds it took 7-8 seconds. On an UltraSparc running at a whopping 350mhz with an enourmous 256mb of ram. On the same machine, it took perl 1.137s.

This reiterates how horribly slow NoteTab is doing something that seems relatively simple to do. :-)

Update: I agree strongly with ww's sentiment about not starting an editor war. That certainly wasn't my intention, and hopefully it wasn't seen that way.

  • Comment on Re: Word replace - notetab light vs perl

Replies are listed 'Best First'.
Re^2: Word replace - notetab light vs perl
by ww (Archbishop) on Oct 05, 2005 at 19:06 UTC
    I am very surprised at the slow execution cited by OP, as it does not match my experience, even when doing a regex replacement using NoteTab Pro on 5000+/- files of ca. 75 - 2K lines apiece.

    But, FWIW (and not to get into a war over "best" editors), NoteTab Lite does NOT currently use perl syntax for RE's and -- AFAIK -- does NOT use the perl NOR PCRE regex engine.

    But, for further "FWIW," doing so has been suggested (to favorable response) for the next version (at least for NoteTab Pro and Standard, < US$20 and ca. US$ 12, respectively).

    I don't have any info on release date, but expect it will be announced fairly soon

    Disclaimer-- node by a happy NoteTab Pro user
Re^2: Word replace - notetab light vs perl
by kiat (Vicar) on Oct 05, 2005 at 16:13 UTC
    A correction. I did it again and Perl took 1 sec or less.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-23 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found