core icon indicating copy to clipboard operation
core copied to clipboard

[FEATURE] 优化语言服务通信协议

Open hacke2 opened this issue 1 year ago • 0 comments

如果你的需求与问题相关,请在下面描述一下(Is your feature request related to a problem? Please describe.)

OpenSumi 3.0 将通信部分进行了重构,去除了 vscode-jsonrpc 的依赖,重写了 OpenSumi RPC,利用 Fury( https://github.com/apache/incubator-fury) 将原本文本通信协议改为二进制通信,前端与后端、后端与插件进程的通信性能得到了非常大的提升,特别是一些大文件、二进制文件,通信速度得到了百倍的提升。但目前重构范围只有文件读写及部分模块,希望对 语言服务(LSP)相关的通信协议从 JSON-RPC 优化成 OpenSumi RPC(Fury https://github.com/apache/incubator-fury)

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

预计补全、查看引用等功能缩短 5 倍左右传输时间

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

补充信息(Additional context)

hacke2 avatar Jul 24 '24 08:07 hacke2