Please sign in to comment.
module: avoid JSON.stringify() for cache key
By avoiding JSON.stringify() and simply joining the strings with a delimiter that does not appear in paths, we can improve cached require() performance by at least 50%. Additionally, this commit removes the last source of permanent function deoptimization (const) for _findPath(). PR-URL: #10789 Reviewed-By: James M Snell <email@example.com> Reviewed-By: Michaël Zasso <firstname.lastname@example.org> Reviewed-By: Michael Dawson <email@example.com> Reviewed-By: Matteo Collina <firstname.lastname@example.org> Reviewed-By: Benjamin Gruenbaum <email@example.com>
- Loading branch information...