Skip to content

【Enhancement】优化主流程lookProcessChain方法 issue #3513 #3514

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

LilMosey
Copy link

@LilMosey LilMosey commented Mar 28, 2025

Describe what this PR does / why we need it

issue #3513
(详细信息都在issue里)

Does this pull request fix one issue?

issue #3513

Describe how you did it

image

Describe how to verify it

实现逻辑参照Collections.synchronizedMap()
image

Special notes for reviews

后续思考:

Image

当资源数限制(如 6000)放开后,或者可以允许超一点点去追求极致的性能的话,代码还可以进行如下优化:
chainMap使用ConcurrentHashMap,不需要显示进行加锁,直接采用ConcurrentHashMap#computeIfAbsent方法,这样锁的粒度更小,性能更好。

Image

@LilMosey LilMosey changed the title issue #3513 【Enhancement】优化主流程lookProcessChain方法 issue #3513 Mar 29, 2025
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

Successfully merging this pull request may close these issues.

1 participant