chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] [Q] Overhead of FFI in Chicken scheme


From: Peter Bex
Subject: Re: [Chicken-users] [Q] Overhead of FFI in Chicken scheme
Date: Thu, 28 Feb 2019 11:29:54 +0100
User-agent: NeoMutt/20170113 (1.7.2)

On Mon, Feb 11, 2019 at 03:16:11PM +0900, Sungjin Chun wrote:
> Hi,
> 
> Are there any FFI overhead in case of compiling to a binary using "bind"?

Hi Sungjin,

As far as I know, the bind egg should not introduce any overhead beyond
what the core FFI will have.  For the core, there's some overhead
regarding type and range checking, and for some types of argument like
strings, there'll be copying involved.

The best way to figure whether out the overhead is acceptable to your
program is to simply measure it.  There are ways to make things faster
if safety is not important.

Sorry for the late reply!

Cheers,
Peter

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]