Closed
Description
On mac, every libuv event loop creates another thread in order to do something tty-related. This is really expensive for us, so we need to find a way to not do it.
Some IRC logs:
16:01 < brson> on mac (at least) the event loop creates another worker thread. what is it for? does it exist on all platforms?
16:01 <@tjfontaine> brson: that's used for some of the tty checking code, iirc
16:02 <@tjfontaine> brson: afaik it's a mac specific work around
16:02 < brson> tjfontaine: thanks. do you know if it can be disabled?
16:04 <@tjfontaine> brson: looking at it, it doesn't seem so, https://github.com/joyent/libuv/blob/master/src/unix/tty.c#L40-L44 which calls
https://github.com/joyent/libuv/blob/master/src/unix/stream.c#L284-L371