* bug#39130: Speed up C Foreign Function Interface
@ 2020-01-14 12:15 Amirouche
2020-02-18 13:23 ` Roel Janssen
0 siblings, 1 reply; 2+ messages in thread
From: Amirouche @ 2020-01-14 12:15 UTC (permalink / raw)
To: 39130
I benchmarked Chez Scheme vs. Guile. Guile is 3 to 5 times slower
than Chez. I attribute that mostly to C Foreign Function Interface.
The application will parse a text file (n-turtle format) and store
in an embedded database (wiredtiger). Most the CPU time should be
spent during parsing [0], then packing scheme objects into
bytevectors [1] and at last C FFI.
[0]
https://github.com/amirouche/nomunofu/blob/master/nomunofu/index.scm#L13
[1]
https://github.com/amirouche/nomunofu/blob/master/nomunofu/okvs/pack.scm#L208
The chez code is in wip-chez branch.
The Guile FFI code of that particular application can be improved.
Still, I read on IRC that there is some interests to improve C FFI,
that is why I fill this issue to be able to keep track of it.
One step forward, would be to have C FFI benchmarks that are easy
to run with Chez, Guile, and Gambit.
Anyone up for the task?
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#39130: Speed up C Foreign Function Interface
2020-01-14 12:15 bug#39130: Speed up C Foreign Function Interface Amirouche
@ 2020-02-18 13:23 ` Roel Janssen
0 siblings, 0 replies; 2+ messages in thread
From: Roel Janssen @ 2020-02-18 13:23 UTC (permalink / raw)
To: Amirouche, 39130
Dear Amirouche,
The Github links don't seem to work (for me).
Kind regards,
Roel Janssen
On Tue, 2020-01-14 at 12:15 +0000, Amirouche wrote:
> I benchmarked Chez Scheme vs. Guile. Guile is 3 to 5 times slower
> than Chez. I attribute that mostly to C Foreign Function Interface.
>
> The application will parse a text file (n-turtle format) and store
> in an embedded database (wiredtiger). Most the CPU time should be
> spent during parsing [0], then packing scheme objects into
> bytevectors [1] and at last C FFI.
>
> [0]
>
https://github.com/amirouche/nomunofu/blob/master/nomunofu/index.scm#L13
>
> [1]
>
https://github.com/amirouche/nomunofu/blob/master/nomunofu/okvs/pack.scm#L208
>
> The chez code is in wip-chez branch.
>
> The Guile FFI code of that particular application can be improved.
>
> Still, I read on IRC that there is some interests to improve C FFI,
> that is why I fill this issue to be able to keep track of it.
>
> One step forward, would be to have C FFI benchmarks that are easy
> to run with Chez, Guile, and Gambit.
>
> Anyone up for the task?
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-18 13:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-14 12:15 bug#39130: Speed up C Foreign Function Interface Amirouche
2020-02-18 13:23 ` Roel Janssen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).