-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize the ConfigType.isValidType method #5432
Comments
改动之前:每次调用isValidType,都会遍历一遍所有的ConfigType |
My question is: can you replace "Map" with "Set". It seems more convinent to use "Set" in this modification. |
Generally speaking, we use configType to get the corresponding value, set cannot do this step. |
I have no idea about the frequent count of this method. |
The isValidType method is used in com.alibaba.nacos.config.server.controller.ConfigController#publishConfig. So I think it can be enhanced. |
motivation:
Optimize the ConfigType.isValidType method
The text was updated successfully, but these errors were encountered: