Requiring restify takes about 800ms on my 2015 Mac Macbook Pro. I realize that this is probably due to Node.js having a slow require method, but still, was surprised. While debugging a restart the server continually (half the time with an automated script, and half the time manually), and so I notice the almost 1 second delay.
var now = new Date
var restify = require('restify')
console.log('duration', new Date - now);
#721 ms (ranges up to 900ms)
(Thank you for Restify, by the way. Love it!)
Requiring restify takes about 800ms on my 2015 Mac Macbook Pro. I realize that this is probably due to Node.js having a slow require method, but still, was surprised. While debugging a restart the server continually (half the time with an automated script, and half the time manually), and so I notice the almost 1 second delay.
(Thank you for Restify, by the way. Love it!)