On Thu, Mar 3, 2016 at 12:50 AM, Reuben Sutton <[email protected]> wrote:
> Hi, > > I haven't tested it yet, but I believe that native gems could work in a > similar fashion to how the Node.js package works - compiling the extension > into the binary. I'll try to get a skeleton rails app running this weekend. > > Sounds cool! Thank you, Reuben! I played with ghost example, it would be great to have similar stuff for RoR applications. > I'm not sure why CPU usage is jumping to 100%. Do you have any pointers > for where to start looking Antii? > > Btw, I could limit cpu usage by cpulimit down to 2-3%, but it looks like a hack. Just curious to know how this busy loop is developed. Did it use https://en.wikibooks.org/wiki/C_Programming/POSIX_Reference/unistd.h/sleep to give up CPU back to active thread queue or it's something lower levell.
