That would certainly explain it – the @cpp version probably needs to do a
fair amount of LLVM code generation, whereas `ccall` is built into the
language.

On Mon, Jan 26, 2015 at 4:59 PM, Ivar Nesje <[email protected]> wrote:

> Did you time your function twice? The first time you call a function it
> needs to be compiled, and for very small tests, that process will dominate.

Reply via email to