Mulavar commented on issue #1232: URL: https://github.com/apache/dubbo-go/issues/1232#issuecomment-854410486
> 我有两个方法 > > 1. 我们在解析配置的时候判断下如果是nacos就引入nacos的注册中心如果其他就引入其他的(但是这样工作量有点大) > 2. 不管有没有用到都添加到imports里面,但是这样内存会变大因为导入很多用不到的配置 > > 这些我希望能跟配置优化一起考虑进去,用户使用的时候只用调用`dubbo.run()`或者其他人口方法就可以启动dubbo-go了 这两个方法我考虑过,方法1其实也得基于方法2,需要在config那层把所有的拓展点都import进来,否则问题就变成运行期间动态import,这块我对go熟悉得不够,没找到好的实现方法。 这块应该和配置优化算一个方向,但是在实现上感觉之间的依赖关系还是有点难建立。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
