Skip to content

concurrentHashMap get and with the same object put could lead to performance problem #2297

Closed
@goldenxinxing

Description

@goldenxinxing

typeHandlerMap.put(type, jdbcHandlerMap == null ? NULL_TYPE_HANDLER_MAP : jdbcHandlerMap);

When my return type is String, I will go through the process of repeating get and put, jdbcHandlerMap even if it is not null and has not been reassigned, so for concurrentHashMap, its lock will cause concurrent performance degradation

Metadata

Metadata

Assignees

Labels

polishingImprove a implementation code or doc without change in current behavior/content

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions