更新:1、优化数据记录的性能,满足实时运行要求;

Signed-off-by: waiwaylee <waiwaylee@foxmail.com>
This commit is contained in:
2026-10-20 17:31:50 +08:00
parent 3dee734d89
commit 17a3d998a6
14 changed files with 2029 additions and 210 deletions
+11 -2
View File
@@ -3,7 +3,6 @@
#include <cstring>
#include <vector>
#include "rdp_record.h"
#include "rdp_record_entity.h"
using namespace std;
@@ -224,11 +223,21 @@ int Dot_Coh::dot_coh_process_buff( std::vector <PointRecv> *data_input,
//2.data_input_buff数据输出给point_recv
#ifdef RDP_RECORD_ENABLE
//记录凝聚后点迹:先收集,输出循环结束后一次入队
std::vector<PointRecv> rec_coh;
rec_coh.reserve(data_input_buff.size());
#endif
for (size_t i=0;i<data_input_buff.size();i++)
{
(*point_recv).push_back(data_input_buff[i]);
RDP_RECORD(RdpRecPointCohesionTWS(data_input_buff[i]));
#ifdef RDP_RECORD_ENABLE
rec_coh.push_back(data_input_buff[i]);
#endif
}
#ifdef RDP_RECORD_ENABLE
RDP_RECORD_COHESION_TWS(rec_coh);
#endif
std::vector<PointRecv>().swap(data_input_buff);