Files
node/lib/internal/streams
Yoo d2183d860a lib: optimize writable stream buffer clearing
Improved the `clearBuffer` function
by replacing `buffered.splice` with `ArrayPrototypeSlice`.
- Eliminates O(N) shifting overhead.
- Improves CPU utilization and reduces GC overhead.

PR-URL: https://github.com/nodejs/node/pull/59406
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2025-08-12 09:20:04 -03:00
..
2024-10-09 06:42:16 +00:00
2024-07-26 08:09:23 +00:00
2024-09-24 19:48:15 +00:00
2024-03-13 19:02:14 +00:00
2024-09-24 19:48:15 +00:00