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

生成md5字符串有一定损耗 #23

Open
hengyu-coder opened this issue Jul 27, 2021 · 1 comment
Open

生成md5字符串有一定损耗 #23

hengyu-coder opened this issue Jul 27, 2021 · 1 comment

Comments

@hengyu-coder
Copy link
Contributor

在 200并发压测情况下,单个应用接口生成md5 损耗在2%左右,这个方法调用比较高频,需要优化一下;
跟踪了损耗点主要在com.pamirs.pradar.InvokeContext#getDigest方法, 获取 MessageDigest 实例对象可以考虑做个单例对象

@hengyu-coder
Copy link
Contributor Author

看了上游调用方法 好像没有必要 非得生成md5字符串,可以采用其它规则,参考traceId生成规则

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant