Skip to content

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

Closed
LilMosey wants to merge 3 commits intoalibaba:masterfrom
LilMosey:enhancer/ctsph/lookProcessChain
Closed

【Enhancement】优化主流程lookProcessChain方法 issue #3513#3514
LilMosey wants to merge 3 commits intoalibaba:masterfrom
LilMosey:enhancer/ctsph/lookProcessChain

Conversation

@LilMosey
Copy link
Copy Markdown

@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
@LilMosey LilMosey closed this by deleting the head repository Jan 21, 2026
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