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. | [reply] |
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.
| [reply] |
Having trouble getting the dimitri's web site. Anybody know where I could get a copy of vip, his VI editor written in perl. Thanks. I have been working on one using Perl/Tk to insert in some perl programs I have that need an editor.
Has any one ever tried using Vim form perl. I have used the Win32::OLE to interface. vim has a VisVim.dll for use with Visual Studio. I'm not a C programmer, so I havent tried to get Perl to call VisVim. Anybody got any ideas?
Thanks Mike W. | [reply] |