Skip to content

require('restify') slow: takes about 800 ms #837

@greglearns

Description

@greglearns

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!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions