Re: Vim 7 performance notes

2007-02-04 Thread Bram Moolenaar
Alexei Alexandrov wrote: > I'm doing some performance investigations of Vim code trying to > understand whether there are any possibilities to improve it. > Currently I've made the following observations (all investigations are > done on Windows): > > Redundant work is done during regexp operati

patch 7.0.190

2007-02-04 Thread Bram Moolenaar
Patch 7.0.190 Problem:"syntax spell default" results in an error message. Solution: Change 4 to 7 for STRNICMP(). (Raul Nunez de Arenas Coronado) Files: src/syntax.c *** ../vim-7.0.189/src/syntax.c Wed Nov 1 12:43:07 2006 --- src/syntax.cSun Jan 21 13:12:19 2007 *

patch 7.0.189

2007-02-04 Thread Bram Moolenaar
Patch 7.0.189 Problem:Translated message about finding matches is truncated. (Yukihiro Nakadaira) Solution: Enlarge the buffer. Also use vim_snprintf(). Files: src/edit.c *** ../vim-7.0.188/src/edit.c Wed Nov 1 21:24:58 2006 --- src/edit.c Fri Jan 19 20:22:09 2007 **

patch 7.0.191

2007-02-04 Thread Bram Moolenaar
Patch 7.0.191 Problem:The items used by getqflist() and setqflist() don't match. Solution: Support the "bufnum" item for setqflist(). (Yegappan Lakshmanan) Files: runtime/doc/eval.txt, src/quickfix.c *** ../vim-7.0.190/runtime/doc/eval.txt Wed Nov 1 15:31:02 2006 --- runtime/doc/eva

Re: Vim 7 performance notes

2007-02-04 Thread Yakov Lerner
On 2/4/07, Bram Moolenaar <[EMAIL PROTECTED]> wrote: Alexei Alexandrov wrote: > I'm doing some performance investigations of Vim code trying to > understand whether there are any possibilities to improve it. > Currently I've made the following observations (all investigations are > done on Wind

Re: Vim 7 performance notes

2007-02-04 Thread Nikolai Weibull
On 2/4/07, Yakov Lerner <[EMAIL PROTECTED]> wrote: Gnu malloc (glibc) is exceptionally fast, iirc. Yes. It's based on Doug Lea's malloc: http://gee.cs.oswego.edu/dl/html/malloc.html nikolai

Compilation error with -D EXITFREE

2007-02-04 Thread Alexei Alexandrov
Hi All! Do I understand it correct that EXITFREE define in Vim source code can be used to make sure all resources are cleaned up on exit (and those which are not should be treated as leaks)? To be able to use it on Windows I had to do the following changes: Index: misc2.c =

Inconsistent return from exists()

2007-02-04 Thread A.J.Mechelynck
In VIM - Vi IMproved 7.0 (2006 May 7, compiled Feb 4 2007 03:42:30) Included patches: 1-191 Compiled by [EMAIL PROTECTED] Huge version with GTK2-GNOME GUI. Features included (+) or not (-): [...] exists(":simalt") or exists(":tearoff") return 2; however trying to use them results in E319: S

Re: Vim 7 performance notes

2007-02-04 Thread Bram Moolenaar
Alexei Alexandrov wrote: > > > > The idea to gradually increase the chunk size makes sense, but not > > everywhere. For the syntax stack it's probably better to start with a > > stack that is mostly needed, then growing quite quickly (say double the > > chunk size every time). That's because wh

Re: Compilation error with -D EXITFREE

2007-02-04 Thread Bram Moolenaar
Alexei Alexandrov wrote: > Do I understand it correct that EXITFREE define in Vim source code can > be used to make sure all resources are cleaned up on exit (and those > which are not should be treated as leaks)? To be able to use it on > Windows I had to do the following changes: Thanks for th

Re: Inconsistent return from exists()

2007-02-04 Thread Bram Moolenaar
Tony Mechelynck wrote: > In > > VIM - Vi IMproved 7.0 (2006 May 7, compiled Feb 4 2007 03:42:30) > Included patches: 1-191 > Compiled by [EMAIL PROTECTED] > Huge version with GTK2-GNOME GUI. Features included (+) or not (-): > [...] > > exists(":simalt") or exists(":tearoff") return 2; howeve

Re: Compilation error with -D EXITFREE

2007-02-04 Thread George V. Reilly
[Previous copy was bounced by vim.org because it wasn't plaintext. Sorry for any duplicates.] George V. Reilly wrote: Bram Moolenaar wrote: Alexei Alexandrov wrote: Do I understand it correct that EXITFREE define in Vim source code can be used to make sure all resources are cleaned up on e

Re: Inconsistent return from exists()

2007-02-04 Thread A.J.Mechelynck
Bram Moolenaar wrote: Tony Mechelynck wrote: In VIM - Vi IMproved 7.0 (2006 May 7, compiled Feb 4 2007 03:42:30) Included patches: 1-191 Compiled by [EMAIL PROTECTED] Huge version with GTK2-GNOME GUI. Features included (+) or not (-): [...] exists(":simalt") or exists(":tearoff") return 2;