When parsing large wasm files, the decode function is very slow. You can reproduce the performance issues with the information in https://github.com/webpack/webpack/issues/17044. This change refactors the recursive algorithm to an iterative version that should have the exact same behavior with significantly better performance.
When parsing large wasm files, the decode function is very slow. You can reproduce the performance issues with the information in https://github.com/webpack/webpack/issues/17044. This change refactors the recursive algorithm to an iterative version that should have the exact same behavior with significantly better performance.