Uh oh!
There was an error while loading. Please reload this page.
lib: remove unnecessary lazy loading in internal/encoding - #45810
Conversation
daeyeon
commented
Dec 10, 2022
Is the lazy loading valid in |
Folks using a build of Node.js without the snapshot are choosing a slower bootstrap to get a better smaller binary, and since this change doesn't impact the binary size, I expect they don't really care about it. |
daeyeon
left a comment
There was a problem hiding this comment.
Without such a function, I guess that a module now snapshotted would be hard to detect when it won't need to be snapshotted in the future. However, I agree with this change since it seems hard to make buffer not snapshotted even in the future.
nodejs-github-bot
commented
Dec 10, 2022
nodejs-github-bot
commented
Dec 12, 2022
Landed in aa2ca81 |
PR-URL: #45810 Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
PR-URL: #45810 Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
PR-URL: #45810 Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
PR-URL: #45810 Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
danielleadams
commented
Jan 4, 2023
Requesting a backport to v18.x since it broke some tests in v18.x-staging. |
node:bufferis snapshotted, so there's no benefit in lazy loading it.