| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Add an option that controls the size of the internal buffer. Fixes: nodejs#29941
|
What a mob programming session 🙌🏻😀 |
Sorry, something went wrong.
|
300 people watched the process of this PR during @scriptconf Great job!!!!! |
Sorry, something went wrong.
|
Can approve that all tests were done |
Sorry, something went wrong.
Sorry, something went wrong.
|
bufferSize will need to be added to test/benchmark/test-benchmark-fs.js Speaking of which: Needs tests. (Just forgot to git add them maybe? You checked the box for tests and I know it's not like you to not have tests. :-D ) |
Sorry, something went wrong.
Done, thanks!
I checked the box because I added benchmarks that measure the performance impact – I don’t think this is something that we could test for well without digging into internals. |
Sorry, something went wrong.
Test passing non-numbers/negative numbers/zero/non-integers as bufferSize? |
Sorry, something went wrong.
And maybe one test for 32 and one other reasonable positive integer to confirm that it doesn't throw in those cases? |
Sorry, something went wrong.
|
@Trott @richardlau I guess, yes – added tests for the error condition/that it works when using a positive integer value. |
Sorry, something went wrong.
Co-Authored-By: Richard Lau <riclau@uk.ibm.com>
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Notable changes:
* cli:
* Added a new flag (`--trace-uncaught`) that makes Node.js print the
stack trace at the time of throwing uncaught exceptions, rather than
at the creation of the `Error` object, if there is any. This is
disabled by default because it affects GC behavior.
#30025
* crypto
* Added `Hash.prototype.copy()` method. It returns a new `Hash` object
with its internal state cloned from the original one.
#29910
* dgram
* Added source-specific multicast support. This adds methods to
Datagram sockets to support RFC 4607
(https://tools.ietf.org/html/rfc4607) for IPv4 and IPv6.
#15735
* fs
* Added a `bufferSize` option to `fs.opendir()`. It allows to control
the number of entries that are buffered internally when reading from
the directory. #30114
* meta
* Added Chengzhong Wu (https://github.com/legendecas) to
collaborators. #30115
PR-URL: #30262
Notable changes:
* cli:
* Added a new flag (`--trace-uncaught`) that makes Node.js print the
stack trace at the time of throwing uncaught exceptions, rather than
at the creation of the `Error` object, if there is any. This is
disabled by default because it affects GC behavior.
#30025
* crypto
* Added `Hash.prototype.copy()` method. It returns a new `Hash` object
with its internal state cloned from the original one.
#29910
* dgram
* Added source-specific multicast support. This adds methods to
Datagram sockets to support RFC 4607
(https://tools.ietf.org/html/rfc4607) for IPv4 and IPv6.
#15735
* fs
* Added a `bufferSize` option to `fs.opendir()`. It allows to control
the number of entries that are buffered internally when reading from
the directory. #30114
* meta
* Added Chengzhong Wu (https://github.com/legendecas) to
collaborators. #30115
PR-URL: #30262
| Back | FazBrowse Home | New Git URL |
Add an option that controls the size of the internal
buffer.
Fixes: #29941
Checklist