Skip to content

[FEATURE] Electron 桌面端 Node 多进程改造 #2241

@yantze

Description

@yantze

如果你的需求与问题相关,请在下面描述一下(Is your feature request related to a problem? Please describe.)
当前的桌面端,比如 ide-electron 在每次启动一个编辑器窗口时,都会创建一个 Node.js 进程,之前的背景是因为之前的框架在处理 Node.js 进程时可能有崩溃的问题,才会有现在的多个 Node.js 进程的情况。

现在多个 Node.js 进程,但其实不必要,因为每个窗口对应的 Node.js 进程的作用可以由一个 Node.js 进程代替,能节约系统资源的同时,也不需要等待 Node.js 进程启动影响打开新窗口的速度(创建进程到和前端连通,大概 100~300ms)

描述你预期的功能表现(Describe the solution you'd like)

现在可以设计成一个桌面端应用,只有一个 Node.js 进程,每个窗口对应的插件进程可以通过这个 Node.js 进程创建,提高效率和缩短打开桌面窗口的时间。

描述你考虑过的替代方案(Describe alternatives you've considered)

补充信息(Additional context)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions