SBoudrias / Inquirer.js

A collection of common interactive command line user interfaces.
MIT License
19.95k stars 1.3k forks source link

Waiting too long to require('inquirer') #744

Closed jinCN closed 1 week ago

jinCN commented 5 years ago

My command line app prompts immediately after start. The problem is require('inquirer') takes about 0.2 ~ 0.4 seconds. Really bad user experience. Can it be optimized to under 0.05 seconds?

SBoudrias commented 5 years ago

Hi, we're running a refactor within which we hope to improve the startup performance considerably. All the help is welcomed over on https://github.com/SBoudrias/Inquirer.js/issues/692