Re: Cream unusably slow for some Vim scripts (e.g. TOhtml)
Cream is a free, easy-to-use configuration of the Vim text editor
Brought to you by:
digitect
From: Steve H. <dig...@mi...> - 2005-12-28 20:46:42
|
On Wed, 2005-12-28 at 15:09 -0400, BG - Ben Armstrong wrote: > Try this: > > 1. edit a large file (my test was on 150K of syntax-highlighted > source code) > 2. convert it to HTML with the TOhtml Vim script: ^O:TOhtml > 3. wait ... and wait ... and wait ... (I gave up after several > minutes, and the file was still only 15% converted) > > In Vim, the same test file took 45 seconds: long, but not unusably > so. I did all edits on Linux on a local drive (/tmp, which is a > ramdisk). > > While I was waiting, Cream would alternately blink back and forth > between updating the "File" menu and updating the "Window" menu. If > we could defeat most or all Cream autocmds during this expensive > operation, only re-enabling them (and triggering them) when we are > all done, the performance could be greatly improved. Hmm, I can't promise this will work, but I think you want something like: let g:CREAM_BEHAVE = "vim" call Cream_behave_vim() TOhtml let g:CREAM_BEHAVE == "cream" call Cream_behave_cream() That's a huge bit of overhead on the front and back, but will eliminate the Cream autocmds and other overhead. And I have no idea what will become of the converted buffer, if it disappears, maybe save it just after :TOhtml. -- Steve Hall [ digitect mindspring com ] :: Cream... something good to put in your Vim! :: http://cream.sourceforge.net |