Please sign in to comment.
buffer: improve allocation performance
assertSize() is adjusted to be inlineable according to V8's default function size limits when determining inlineability. This results in up to 11% performance gains when allocating any kind of Buffer. Avoid avoids use of in, resulting in ~50% improvement when creating a Buffer from an array-like object. PR-URL: #10443 Reviewed-By: James M Snell <email@example.com> Reviewed-By: Colin Ihrig <firstname.lastname@example.org> Reviewed-By: Luigi Pinca <email@example.com> Reviewed-By: Сковорода Никита Андреевич <firstname.lastname@example.org> Reviewed-By: Anna Henningsen <email@example.com>
- Loading branch information...
Showing with 14 additions and 5 deletions.