Event processing method, apparatus, device, and storage medium
By combining data red-black trees and timeout red-black trees, the problem of low efficiency in event timeout handling mechanisms is solved, achieving efficient resource management and accurate processing with O(logn) time complexity.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA UNIONPAY
- Filing Date
- 2022-01-13
- Publication Date
- 2026-06-16
AI Technical Summary
Existing event timeout handling mechanisms are inefficient when dealing with a large number of events, leading to decreased system performance and low resource utilization.
A combination of data red-black trees and timeout red-black trees is used. The data red-black tree is used to find the data identifier of the target event and the timeout time is found in the timeout red-black tree. If there is no matching node in the timeout red-black tree, the resources are released, thus achieving timeout processing with O(logn) time complexity.
This improves the processing efficiency and resource utilization of the timeout handling mechanism, reduces the resource consumption of red-black trees, and enhances the accuracy and efficiency of timeout handling.
Smart Images

Figure 1 
Figure 2