优化循环池性能

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

@@ -185,7 +185,7 @@ public:
static onceToken token([]() {
packet_pool.setSize(1024);
});
auto ret = packet_pool.obtain();
auto ret = packet_pool.obtain2();
ret->_buffer.clear();
ret->_prefix_size = 0;
ret->_dts = 0;