GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — zlib: skip the stream in sync convenience calls without options by anonrig · Pull Request #66864 · nodejs/node Conversation
Member
When no options are passed, this creates the native handle with the default settings directly and skips the stream. It also decompresses into a scratch buffer that's kept between calls and copies the result out. Calls with options, including Results and errors are unchanged. The new test compares every method against the same call with This is independent of #66854 and #66863. It only touches the sync path. Benchmarks
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions`zlib.inflateSync(buffer)` and the other synchronous convenience methods constructed a Transform stream for every call, even though only its native handle is used and, without options, the stream is never exposed. They also allocated a fresh output chunk for every call. When no options are passed, drive a native handle created with the default settings directly, and decompress into a scratch buffer kept between calls, copying the result out. Calls with options, including `info`, keep the existing path. Results and errors are unchanged. Signed-off-by: Yagiz Nizipli <[email protected]> Assisted-by: Grok
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #66864 +/- ## ======================================== Coverage 90.50% 90.50% ======================================== Files 797 797 Lines 278195 278363 +168 Branches 53453 53509 +56 ======================================== + Hits 251777 251931 +154 - Misses 16795 16808 +13 - Partials 9623 9624 +1
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in 0160710 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
`zlib.inflateSync(buffer)` and the other synchronous convenience methods constructed a Transform stream for every call, even though only its native handle is used and, without options, the stream is never exposed. They also allocated a fresh output chunk for every call. When no options are passed, drive a native handle created with the default settings directly, and decompress into a scratch buffer kept between calls, copying the result out. Calls with options, including `info`, keep the existing path. Results and errors are unchanged. Signed-off-by: Yagiz Nizipli <[email protected]> Assisted-by: Grok PR-URL: #66864 Reviewed-By: Matteo Collina <[email protected]>
`zlib.inflateSync(buffer)` and the other synchronous convenience methods constructed a Transform stream for every call, even though only its native handle is used and, without options, the stream is never exposed. They also allocated a fresh output chunk for every call. When no options are passed, drive a native handle created with the default settings directly, and decompress into a scratch buffer kept between calls, copying the result out. Calls with options, including `info`, keep the existing path. Results and errors are unchanged. Signed-off-by: Yagiz Nizipli <[email protected]> Assisted-by: Grok PR-URL: #66864 Reviewed-By: Matteo Collina <[email protected]>
`zlib.inflateSync(buffer)` and the other synchronous convenience methods constructed a Transform stream for every call, even though only its native handle is used and, without options, the stream is never exposed. They also allocated a fresh output chunk for every call. When no options are passed, drive a native handle created with the default settings directly, and decompress into a scratch buffer kept between calls, copying the result out. Calls with options, including `info`, keep the existing path. Results and errors are unchanged. Signed-off-by: Yagiz Nizipli <[email protected]> Assisted-by: Grok PR-URL: nodejs#66864 Reviewed-By: Matteo Collina <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.