Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "zlib: improve performance" #16280

Closed
wants to merge 1 commit into from
Closed

Conversation

Trott
Copy link
Member

@Trott Trott commented Oct 18, 2017

This reverts commit add4b0a.

@MylesBorins

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

zlib

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. labels Oct 18, 2017
@Trott
Copy link
Member Author

Trott commented Oct 18, 2017

Fixes: #14161

@Trott
Copy link
Member Author

Trott commented Oct 18, 2017

@mscdex
Copy link
Contributor

mscdex commented Oct 18, 2017

Can't we just fix minizlib instead (which shouldn't be accessing internals anyway)?

@addaleax
Copy link
Member

@mscdex At least @iarna said that’s what most likely to happen, but it certainly hasn’t happened yet (and I didn’t have the time to look into a proper fix for all of this either), and Node 9 is moving closer … this revert doesn’t have to be permanent.

@Trott
Copy link
Member Author

Trott commented Oct 18, 2017

Can't we just fix minizlib instead (which shouldn't be accessing internals anyway)?

@mscdex I'll be happy if this ends up being unnecessary and we can close it without landing.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but we shouldn’t need this.

@mcollina
Copy link
Member

can you address #15625 in a separate commit that is easily backportable?

@addaleax
Copy link
Member

Actually, @iarna just wrote a comment on isaacs/node-tar#144 which reminded me that that PR exists and also solves the problem here, for node-tar & npm.

@iarna
Copy link
Member

iarna commented Oct 18, 2017

I'll see if I can't wrangle the node-tar patch into a npm release this week.

@refack
Copy link
Contributor

refack commented Oct 18, 2017

Can't we just fix minizlib instead (which shouldn't be accessing internals anyway)?

that’s what most likely to happen, but it certainly hasn’t happened yet

I'll see if I can't wrangle the node-tar patch into a npm release this week.

Can we have a deadline for either this or a compatible npm release? Suggesting Mon 10/23, if node9+npm is still broke, let's land this?

@jasnell
Copy link
Member

jasnell commented Oct 18, 2017

I'm generally -1 on this but I'm not going to give it the big red X or block it from moving forward. As others have said, I'd prefer the userland fix instead.

@Fishrock123
Copy link
Contributor

Fishrock123 commented Oct 18, 2017

I don't think we should do this. We made a stance on this long enough ago and my understanding is minizlib violated those expectations somewhat recently, and is authored by someone who very well knows our expectations on these things.

Edit: in extension, if npm or subdependencies use that module, it is their fault if things break.

@zkat
Copy link
Contributor

zkat commented Oct 19, 2017

heads-up: the next release of npm is going out tomorrow, and will include a new version of node-tar which should be compatible.

If y'all wanna try the patch out in the meantime, you can use $ npx npmc install to try it out in the npm canary.

@targos
Copy link
Member

targos commented Oct 21, 2017

I think the latest npm (5.5.1) still has version 4.0.1 of node-tar.

@addaleax
Copy link
Member

@zkat Nice, this seems to work. 🎉

@targos
Copy link
Member

targos commented Oct 23, 2017

@zkat do you know when that release of npm will be available?
@jasnell is preparing the release of Node 9.0.0 and it would be really nice to have it in (we are currently stuck with 5.3.0 on master)

@jasnell
Copy link
Member

jasnell commented Oct 23, 2017 via email

MylesBorins added a commit to MylesBorins/node that referenced this pull request Oct 27, 2017
MylesBorins added a commit that referenced this pull request Oct 30, 2017
Closes: #16280

PR-URL: #16509
Fixes: #14161
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
jasnell pushed a commit that referenced this pull request Oct 30, 2017
Closes: #16280

PR-URL: #16509
Fixes: #14161
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Qard pushed a commit to ayojs/ayo that referenced this pull request Nov 2, 2017
Closes: nodejs/node#16280

PR-URL: nodejs/node#16509
Fixes: nodejs/node#14161
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Qard pushed a commit to ayojs/ayo that referenced this pull request Nov 2, 2017
Closes: nodejs/node#16280

PR-URL: nodejs/node#16509
Fixes: nodejs/node#14161
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
addaleax pushed a commit to ayojs/ayo that referenced this pull request Dec 7, 2017
Closes: nodejs/node#16280

PR-URL: nodejs/node#16509
Fixes: nodejs/node#14161
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
@Trott Trott deleted the zlib-revert branch January 13, 2022 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.