polaris-java icon indicating copy to clipboard operation
polaris-java copied to clipboard

对插件配置的对象进行缓存

Open wallezhang opened this issue 3 years ago • 2 comments

What is the feature you want to add? 在获取插件配置的时候,代码参考这里:com.tencent.polaris.factory.config.plugin.PluginConfigImpl#getPluginConfig 目前只对配置的属性值进行了缓存,每次都会通过mapper反序列化一个新的对象,是不是可以考虑把反序列化之后的对象缓存呢?

Why do you want to add this feature?

How to implement this feature?

Additional context Add any other context or screenshots about the feature request here.

wallezhang avatar Jul 12 '22 06:07 wallezhang

好的,感谢建议,我们优化下

andrewshan avatar Oct 13 '22 14:10 andrewshan

好的,感谢建议,我们优化下

如果评估需要做的话,我可以优化一下

wallezhang avatar Oct 14 '22 02:10 wallezhang

@andrewshan 有一个疑问,在com.tencent.polaris.factory.config.plugin.PluginConfigImpl类中的plugin字段,上面有一个@JsonProperty注解,这个是在哪里会使用到呢?没看到有地方会用Jackson对这个类做序列化或者反序列化

wallezhang avatar Nov 28 '22 08:11 wallezhang