Thanks for the answer.
Best regards !
On Sunday, March 24, 2013 11:10:20 PM UTC+1, MarcWeber wrote:
> Excerpts from Zulox4's message of Sun Mar 24 11:43:30 +0100 2013:
> 
> > Hello,
> 
> > I wrote the P() Vimscript function to compute Π. A C language compiled 
> > version take about 2 seconds to return the result (1200 chars string).
> 
> > But the Vim script take about 47 seconds.
> 
> > Could I do something to speed up the script ? Thanks.
> 
> Again - VimL is known to be slow if you want to do massive computation.
> 
> It simple is the wrong tool and was never designed to perform well for such 
> use cases.
> 
> Vim is a text editor only - which allows you to use external (speedy)
> 
> tools in simple ways like this:
> 
> <c-r>=system('pi 20')<cr> or such.
> 
> 
> 
> pi could be a C program, or it could be written in JS (jitting), or
> 
> julia or whatever language you like.
> 
> 
> 
> > " Computing Π is a stress test for a computer--a kind of "digital
> 
> > cardiogram." " -> from the book:  "Blatner, David. 1997. The Joy of
> 
> > Pi" .
> 
> Why stress test VimL in this way? We all know it does not JIT - and that
> 
> there are specialized languages to perform will for such use cases.
> 
> 
> 
> Marc Weber

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui