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 <firstname.lastname@example.org> Reviewed-By: Colin Ihrig <email@example.com> Reviewed-By: Luigi Pinca <firstname.lastname@example.org> Reviewed-By: Сковорода Никита Андреевич <email@example.com> Reviewed-By: Anna Henningsen <firstname.lastname@example.org>
- Loading branch information...
Showing with 14 additions and 5 deletions.