Skip to content

Optimize the timer implementation in Remoting #6105

@socutes

Description

@socutes

Timer is a common and effective tool for timing tasks. java provides several Timer tools, such as java.util.Timer and ScheduledThreadPoolExecutor.but these tools are flawed in execution efficiency.
In the scenario of high concurrency and high traffic flow processing. some subtle performance differences, often have the effect of amplification, resulting in serious performance degradation.
Therefore, you are advised to replace scheduled task scheduling java.util.Timer with io.netty.util.HashedWheelTimer in Remoting.
In addition, a piece of code that has been commented out is deleted

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions