Re: Concurrent native callbacks performance

"felix.winkelmann--- via Chicken-users" <[email protected]>
Newsgroups gmane.lisp.scheme.chicken
Message-ID <[email protected]>
> The goal of the benchmark is to measure the C-to-Scheme call overhead. It
> consists of a native thread calling one function `(foo)` 10M times. The time is
> measured in the C program, around the loop calling the function. The time per
> call is reported. Here is the loop code:
> [...]
> Is the approach above a reasonable alternative to cncb, or am I missing some
> major point?
>
> Happy with any feedback.

Hi! Very interesting, indeed! It's not suprising that the hand rolled variants
are so much faster. I'm not so sure about the portability issues, though.
That the pipe-based approach goes through the kernel naturally has a cost,
and the current implementation is more intended to have a usable device
to make communication among native threads possible, than as a high
performance measure.

Can you show us the code for the assembly variant? I'd love to take a look.


felix
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.