Feature enhancement Implement HashedWheelTimer for much more accurate timer task.
Issue Description
Type: feature request
Describe what happened (or what feature you want)
From the source codes in the nacos project, the timer task maby implemented by much more powerful HashedWheelTimer implement for more accurate timer.The reasons are as follow:
(1)If many timer task is managed by its own scheduler for its lifecycle, then it will waste resource of cpu and memory.
(2)Hashed Wheel Timer is a kind of scheduling timer thread resouce module, and it can schedule many task to one scheduler.The software can manager, trigger, and run the timer task, and can manage their lifecycle.
Describe what you expected to happen
Depend on the HashedWheelTimer implement ,we can define much more accurate timer task, and can define more accurate timer paramter, such as accurate to seconds.
How to reproduce it (as minimally and precisely as possible)
Tell us your environment
All the enviroment.
3条答案
按热度按时间agyaoht71#
I think I can implmement this enhancement feature.So this issue can assign to me! @chuntaojun@yanlinly
mefy6pfw2#
nvbavucw3#
So, because of the HashWheelTimer adavantages' reason, we can optimize the original nacos timer task architecture, performance and powerful.