Re: [MLton] cost of _export
Florian Weimer <[email protected]> Wed, 10 Dec 2014 18:39:56 +0100
| Newsgroups | gmane.comp.lang.ml.mlton.devel |
|---|---|
| Message-ID | <[email protected]> |
* Bernard Berthomieu: > For the record, the actual SML application is an xml parser > relying on libexpat (in C) but with start/end element handlers > implemented in SML. So it exactly fits the "SML calling C > calling SML" scenario the patch improves. I have a toy implementation which uses C callbacks to serialize the events to a buffer on the C heap. No C-to-SML callbacks are needed as a result, and there is only one SML-to-C-and-back transition per input buffer (4 KiB or so). Interested? I could publish the sources as-is if you want to play with it. ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk