Re: [Haskell-cafe] FFI: Overhead of foreign unsafe imports

2012-02-26 Thread Sanket Agrawal
On Sun, Feb 26, 2012 at 1:36 PM, Yves Parès wrote: > Hello, > When I was using C code from Python, the overhead put on calling C code by > Python was significant. > To simplify, say I have on C-side two procedures f and g, I do all the > stuff to call them in a row from Python, well I'm better of

Re: [Haskell-cafe] FFI: Overhead of foreign unsafe imports

2012-02-26 Thread Jason Dagit
On Sun, Feb 26, 2012 at 10:36 AM, Yves Parès wrote: > Hello, > When I was using C code from Python, the overhead put on calling C code by > Python was significant. > To simplify, say I have on C-side two procedures f and g, I do all the stuff > to call them in a row from Python, well I'm better of

[Haskell-cafe] FFI: Overhead of foreign unsafe imports

2012-02-26 Thread Yves Parès
Hello, When I was using C code from Python, the overhead put on calling C code by Python was significant. To simplify, say I have on C-side two procedures f and g, I do all the stuff to call them in a row from Python, well I'm better off factorizing: adding on C side a wrapper h procedure that call