softprops / serverless-rust

⚡ 🦀 a serverless framework plugin for rustlang applications
https://www.npmjs.com/package/serverless-rust
MIT License
542 stars 82 forks source link

F# #7

Closed qm3ster closed 5 years ago

qm3ster commented 5 years ago

Would PInvokeing the rust dll from F# (allegedly fastest AWS Lambda runtime) be slower than the cpython?

softprops commented 5 years ago

I'd have to benchmark it. Runtime overhead is pretty of cpython is pretty low. I'm leveraging the rust crowbar crate which exposes a rust function as a python initializer without the need to wrap a python script around it. The result is the cost of the startup time for python which is very low compared to other runtimes + the time it takes python to install an initializer. At runtime there's small layer in rust crowbar that uses cpython to marshal to and from serde Json types.

I would be interested in the comparison but would also be curious about it's trade offs. Not just in terms of performance but in what's currently available crate wise that would make the work flow comparable to the ease of rust crowbar. For me workflow is as important has performance.

drusellers commented 5 years ago

Given the "official" rust support now I think this issue can be closed.