mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 11:41:44 +08:00
优化循环池性能
This commit is contained in:
@@ -129,7 +129,7 @@ Buffer::Ptr HttpFileBody::readData(size_t size) {
|
||||
if(!_map_addr){
|
||||
//fread模式
|
||||
ssize_t iRead;
|
||||
auto ret = _pool.obtain();
|
||||
auto ret = _pool.obtain2();
|
||||
ret->setCapacity(size + 1);
|
||||
do{
|
||||
iRead = fread(ret->data(), 1, size, _fp.get());
|
||||
|
||||
Reference in New Issue
Block a user