buffer: make Buffer.alloc() works with pool
Checklist
-
tests and code linting passes -
a test and/or benchmark is included -
the commit message follows commit guidelines
Affected core subsystem(s)
buffer
Description of change
It makes Buffer.alloc() more faster ~2.5x.