Seems for me, you don't do any selection like in JS code, even any polling. Sure it would perform better. (Maybe I'm missing something, not so proficient in nodejs)

On 02/06/2017 08:56 AM, fwang2...@gmail.com wrote:
For compared with nodejs:
if I remove all the serverDone case, only left the ticker. The CPU is 5% in my book, while nodejs cost 0.5%.
The nodejs code is in the attachment.


--
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to