Performance: 使用循环池优化rtmp分发性能

This commit is contained in:
xiongziliang
2021-11-21 11:34:20 +08:00
parent 5404a5266a
commit 97f7255f0a
2 changed files with 4 additions and 1 deletions

View File

@@ -107,6 +107,8 @@ private:
function<const char * (const char *data, size_t len)> _next_step_func;
////////////Chunk////////////
unordered_map<int, std::pair<RtmpPacket::Ptr/*now*/, RtmpPacket::Ptr/*last*/> > _map_chunk_data;
//循环池
ResourcePool<BufferRaw> _packet_pool;
};
} /* namespace mediakit */