mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
lib: faster FreeList
Make FreeList faster by using Reflect.apply and not using is_reused_symbol, but rather just checking whether any items are present in the list prior to calling alloc. PR-URL: https://github.com/nodejs/node/pull/27021 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
committed by
Daniel Bevenius
parent
547576f530
commit
47f5cc1ad1
@@ -29,7 +29,7 @@ const { methods, HTTPParser } =
|
||||
getOptionValue('--http-parser') === 'legacy' ?
|
||||
internalBinding('http_parser') : internalBinding('http_parser_llhttp');
|
||||
|
||||
const { FreeList } = require('internal/freelist');
|
||||
const FreeList = require('internal/freelist');
|
||||
const { ondrain } = require('internal/http');
|
||||
const incoming = require('_http_incoming');
|
||||
const {
|
||||
|
||||
Reference in New Issue
Block a user