mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
crypto: fix performance regression
e559842188
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: https://github.com/nodejs/node/issues/31739
PR-URL: https://github.com/nodejs/node/pull/31742
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user