src: fix performance regression in node_file.cc #31340
Labels
lib / src
Issues and PRs related to general changes in the lib or src directory.
performance
Issues and PRs related to the performance of Node.js.
Commits dcb6929, 4396beb and 8a96d05 turned the O(n) scan in
InternalModuleReadJSON()
into an O(4n) scan. Fix the performance regression by turning that into a linear scan again.cc @guybedford @jkrems
The text was updated successfully, but these errors were encountered: