You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
allocation occur when exceed cap, why not just create a new buffer ?
If we just create a new buffer, we should reput the old into the pool, then there will be more buffers in the pool. And lots of the small buffer will be hardly reused and cause more reput and create.
Most of the time, append would not trigger the realloc(buffer move and copy), even if trigger the realloc, the buffer should be returned to the runtime or system, we don't need worry about it.
The text was updated successfully, but these errors were encountered: