Skip to content
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 plugin selector logic. #651

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

weixiang1862
Copy link
Member

Improve the performance of PluginSelector

  • If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #.
  • Update the CHANGES log.

PluginCfg call PluginSelector#select every plugin and every line in skywalking-plugin.def in load function, I move it to PluginCfg#getPluginClassList, then it just need call once.

I tested in my local pc (8C 16G), it can save 200ms + boot time when I exclude 4 plugins by config plugin.exclude_plugins.

@wu-sheng wu-sheng added this to the 9.1.0 milestone Nov 30, 2023
@wu-sheng
Copy link
Member

Thanks, I will check the codes later.

@wu-sheng wu-sheng added the chore label Nov 30, 2023
…/apm/agent/core/plugin/PluginCfg.java

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
@wu-sheng wu-sheng merged commit 6220af1 into apache:main Dec 1, 2023
184 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants