Skip to content

Commit

Permalink
crypto: fixes performance regression
Browse files Browse the repository at this point in the history
e559842
made writable/readable computed with a legacy mode if the properties
are written to.

LazyTransform still unecessarily wrote to these properties causing a performance
regression.

Fixes: #31739
  • Loading branch information
ronag committed Feb 11, 2020
1 parent 8d8f7c6 commit 81e6995
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/internal/streams/lazy_transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ module.exports = LazyTransform;

function LazyTransform(options) {
this._options = options;
this.writable = true;
this.readable = true;
}
ObjectSetPrototypeOf(LazyTransform.prototype, stream.Transform.prototype);
ObjectSetPrototypeOf(LazyTransform, stream.Transform);
Expand Down

0 comments on commit 81e6995

Please sign in to comment.