Project

General

Profile

Actions

Fix #20868

open

optimize some timer

Added by yang wang over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Monitor
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
mon
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

several timer like health_tick_event in Class Monitor, they execute every several seconds as cycle timer, and the corresponding C_MonContext object will be new and delete every timeout, i think C_MonContext object can keep all the time until cancle it, this mean new it when timer start, delete it when the timer be canceled.
after optimized, it will save many new and delete operation, as we known dynamic allocations and frees a lot little memory can increase memory fragmentation, it may has some help to avoid memory fragmentation.
it can be implement by overwrite the virtual complete function in base Class Context.

No data to display

Actions

Also available in: Atom PDF