js-refactor icon indicating copy to clipboard operation
js-refactor copied to clipboard

Slow startup time

Open BlaM opened this issue 9 years ago • 2 comments

I just noticed that JS Refactor is one of the main reasons why my Atom needs so long to start up. According to the Package page it adds 1300ms to my startup time while the "base" Refactor package only takes 90ms.

Maybe there is a way to quickly start and only load/process the heavy items when someone decides to use the plugin for a project?

I'm using Windows 8 and 10.

BlaM avatar Nov 22 '16 09:11 BlaM

This is still an issue. The refactor package only adds 271ms to start-up - acceptable for the considerable value. js-refactor adds 4730ms.

Windows 7 64bit.

IMBurbank avatar Apr 03 '17 20:04 IMBurbank

Activation hooks look like a good approach. This will let the package load only when it's required (ie. a JS document is being used). This doesn't replace actual optimisation, but it removes the time cost when not using JS.

Aerijo avatar Aug 10 '17 08:08 Aerijo