davideicardi / live-plugin-manager

Plugin manager and installer for Node.JS
MIT License
225 stars 43 forks source link

QUESTION: Why packages must be reinstalled after app restart? #94

Open janproch opened 1 month ago

janproch commented 1 month ago

I have app with plugins, which creates lot of forks. So speed of launching new process with available selected plugins is critical.

Why is necessary to call manager.install after each restart, when plugin was already installed previously?

Also I expect problems, when more processes will install plugins into the same directory simultaneusly.

I have no problem to store list of installed plugins somewhere, but performance penalty related with installing plugin is now too big

I read explanations in https://github.com/davideicardi/live-plugin-manager/issues/18 , but there is no answer to my question

Thank you

davideicardi commented 3 weeks ago

I would expect that installing a plugin already present in the cache to be quite fast. Currently what are the performance? And your expectations?

The idea, for now, is to delegate to the client app the plugin management, while the library handles the installation. The reason is just to keep it simple.