Friday, August 26, 2011

Re: display faster output of external app

Ok Ihave modified my app to return random value and it takes time to
process all those lines

rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr value:2940
..
x18 lines
..
rrrrrrrrrrrrrrrrrrrr value:2966
rrrrrrrrrrrrrrrrrrrr value:2969
rrrrrrrrrrrrrrrrrrrr value:2969


I am launching the app like that and it takes about 30 seconds/
18,~500ms to returnand display valuein vim buffer:

let
s:cmdbase=shellescape(s:apppath) <=
done in aninit func

let s:cmd=s:cmdbase.' -rsimu '.itemReadLine[0]." ".type <=
done in reading lines of buffer
let g:output=substitute(system(s:cmd),'\n','',"g")

Do you see mistake I have made to launch the app?

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: