Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As lua is single threaded, API should be asynchronous #2

Open
temsa opened this issue Feb 17, 2012 · 1 comment
Open

As lua is single threaded, API should be asynchronous #2

temsa opened this issue Feb 17, 2012 · 1 comment

Comments

@temsa
Copy link

temsa commented Feb 17, 2012

@timn @creationix

Asynchronous API for single threaded language have proven to be pretty efficient and fast, it's what has leaded node.js to a big success.

So, maybe it would be better tu use luvit as a core lua engine, for using asynchronous APIs (file, network, etc.) rather than current synchronous ones ?

I guess it would hugely simplify and lighten the code, and, at the sime time, able to provide a better performing tool for ROS.

@timn
Copy link
Owner

timn commented Feb 17, 2012

Looks like an interesting thing to try out. But I'd use it only as an optional add-on to keep the external dependencies of roslua at a minimum. Last summer I vastly improved its performance while at SRI and now it's pretty good in my current scenarios. Most critical in terms of performance is message deserialization rather than network throughput. Any specific scenario where network performance of roslua has been the bottleneck?

I'd happily try out patches you might provide that add optional support for luvit, e.g. automatically use it if available and not explicitly disabled with an init parameter. I have neither the time nor the need to do this myself in the foreseeable future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants