mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
doc: consolidate use of multiple-byte units
Refs: https://en.wikipedia.org/wiki/Byte#Multiple-byte_units PR-URL: https://github.com/nodejs/node/pull/42587 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
This commit is contained in:
parent
51fd5db4c1
commit
1e761654d3
26 changed files with 46 additions and 46 deletions
|
@ -213,7 +213,7 @@ function getCode(fd, line, column) {
|
|||
let lines = 0;
|
||||
// Prevent blocking the event loop by limiting the maximum amount of
|
||||
// data that may be read.
|
||||
let maxReads = 32; // bytesPerRead * maxReads = 512 kb
|
||||
let maxReads = 32; // bytesPerRead * maxReads = 512 KiB
|
||||
const bytesPerRead = 16384;
|
||||
// Use a single buffer up front that is reused until the call site is found.
|
||||
let buffer = Buffer.allocUnsafe(bytesPerRead);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue