brackets-userland / brackets-npm-registry

Extension to install other extensions with npm
MIT License
44 stars 8 forks source link

Use lots of CPU and memory #26

Closed eight04 closed 8 years ago

eight04 commented 9 years ago

It just hang my computer when brackets started. I have no idea what's going on. Is it updating?

zaggino commented 9 years ago

If heroku server is down, it actually tries to build the registry locally.

If you have never used npm search before, this might take time and be cpu extensive. On my pc it takes about 5 minutes for the first time and then about 10-15 seconds following times.

Url of the server is http://brackets-npm-registry.herokuapp.com/

Unfortunately, I don't have paid plan for it so it's not 100% stable.

zaggino commented 9 years ago

This is the "download method": https://github.com/zaggino/brackets-npm-registry/blob/8b17f771220a515c5fbf1830d943861e1da1d944/src/ui/registry-utils.js#L83-L100

You might want to remove the return Promise.resolve(NpmDomain.exec('buildRegistry') part if it causes too much problems to your computer.

zaggino commented 9 years ago

If you remove that, it'll of course mean that the extension will fail whenever the server is down for some reason beyond my control.

eight04 commented 9 years ago

What will happen if the extension fails? I have installed brackets-eslint. Am I able to use it when server is down?

zaggino commented 9 years ago

Yes, you only need the server to load list of extensions and install stuff. Once the extension is installed it will work regardless of the server status.

eight04 commented 9 years ago

Thanks for the reply :smile: