Fixing Node.js vm APIs, part 4 - hitting the compilation cache again
In the last post I wrote about how I finally managed to fix the memory problems in the vm
APIs, and it turned out that there was another issue blocking users from upgrading away from the End-of-Life Node.js v16 - vm.Script
compilation could be ~100x slower in v16 in some cases. In this post, let’s look at what was causing the performance regression, and the fix/workaround developed for it.