rickyrauch / Balloons.IO

Balloons.IO is a web multi-room chat server and client ready to use. It’s built with the help of node.JS, Express, Socket.IO and Redis. Balloons uses PassportJS for authentication with Twitter and Facebook
http://balloons.io
2.37k stars 493 forks source link

optimize index route #85

Open naholyr opened 11 years ago

naholyr commented 11 years ago

Current calls are made one after the other, not very efficient. Amongst the 5 calls, 3 can be made in parallel, this is what async.auto() will help to achieve transparently :)

Note that the code would be simplier if the callbacks had a standard format (err [, results…]) but whatever.

impronunciable commented 11 years ago

I like this, thanks.

I'd like more to make a lua script that runs inside redis. If I don't have the time in the following days we can still merge this. @cristiandouce what do you think?