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

RE: RE: VI in Perl

by dmitri (Priest)
on Nov 16, 2000 at 02:27 UTC ( [id://41902]=note: print w/replies, xml ) Need Help??


in reply to RE: VI in Perl
in thread VI in Perl

Good point.

However, I think that when the cache is implemented, and I type '250dd' in the middle of a 3000-line file, linked list will not be much slower than splice(), or maybe even faster (or maybe I am just fooling myself).

I think the implementation is such because back when I was contemplating this program, back in July, I was convinced by some people and some programming literature that all editors are written using linked lists. I did not want to swim against the stream. We'll see how it pans out, I guess, I can always rewrite v_list using arrays.

Thank God for OO! :)

- Dmitri.

Replies are listed 'Best First'.
Dominus was right.
by dmitri (Priest) on Dec 16, 2000 at 23:56 UTC
    Dominus was right on both counts. Arrays are faster and simpler. I re-implemented vip using arrays and it works like a charm. This also reduced my code by about 300 lines.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-18 21:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found