brianmario / streamly

A streaming REST client for Ruby, using libcurl
MIT License
106 stars 3 forks source link

I made Streamly go FFI #2

Closed sgonyea closed 13 years ago

sgonyea commented 13 years ago

I figured I should notify you about it and see if you care / whichever :).

https://github.com/aitrus/streamly_ffi

I replaced your C Extension with an FFI layer. It benchmarks pretty favorably, so far. Then again, I haven't yet added the error checking or any of that nonsense.

Benchmarks:

https://gist.github.com/670362

sgonyea commented 13 years ago

Oh, so I can turn that into a Pull request or .. yeah.

sgonyea commented 13 years ago

Damn it, Comment and Close. Why are you closer than Comment?

brianmario commented 13 years ago

Yeah a pull request would be awesome. I'd like to use that to start a dialog about how we could merge your FFI stuff to work along side the C extension (for platforms that can't use the C extension like jRuby). Maybe under a Streamly::FFI namespace or something that we could fallback the Streamly.get/post/etc API methods to if the C extension isn't available.