Oops, forgot one answer.

On Fri, May 11, 2012 at 08:48:15PM +0700, Henrik Sarvell wrote:
> Maybe it's just easier to print the results and capture that? If so
> then maybe it's even easier/more efficient to skip this completely and
> simply call an executable or does native have lower overhead?

I would estimate that calling an executable has at least a 1000-fold
overhead:

   : (bench (do 1000 (call "/bin/true")))
   0.616 sec
   -> T

   : (bench (do 1000000 (native "pcre/main.so" "tst" NIL '(X (16 S S)))))
   0.157 sec
   -> NIL

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to