优化循环池性能

This commit is contained in:
ziyue
2022-01-06 14:30:44 +08:00
parent e2636c5179
commit 5a592e6db6
10 changed files with 13 additions and 13 deletions

View File

@@ -138,7 +138,7 @@ RtmpPacket::Ptr RtmpPacket::create(){
static onceToken token([]() {
packet_pool.setSize(1024);
});
auto ret = packet_pool.obtain();
auto ret = packet_pool.obtain2();
ret->clear();
return ret;
#else