<!-- ⚠️ IMPORTANT ⚠️ Please use the appropriate template for each! - If you are reporting a bug for Oxlint or the Oxc VS Code extension: - https://github.com/oxc-project/oxc/issues/new?template=linter_bug_report.yaml - If you are reporting a bug for Oxfmt, especially difference with Prettier: - https://github.com/oxc-project/oxc/issues/new?template=formatter_diff_report.yaml Other than that, feel free to enter whatever information you like. Please include as much detail as possible, such as version information. Also, if you have steps to reproduce the issue, that would be very helpful. --> ## Description I've encountered a significant performance regression in `oxc-minify` where a file that is only ~6% larger takes 2.5x longer to minify. ## Benchmark Results | File | Input Size | Output Size | Compression Ratio | Time | |------|------------|-------------|-------------------|------| | good.js | 10176.62 KB | 6781.65 KB | 33.36% | **282.31 ms** | | bad.js | 10820.12 KB | 6937.99 KB | 35.88% | **704.10 ms** | ## Environment - `oxc-minify` version: 0.105.0 - Platform: Windows (win32-x64-msvc) ## Reproduction 1. git clone https://github.com/IWANABETHATGUY/oxc-minify-performance-issue 2. pnpm install Files attached: `good.js` and `bad.js` ```bash node minify-with-oxc.mjs ./good.js # ~282ms node minify-with-oxc.mjs ./bad.js # ~704ms ``` ## Expected Behavior Similar input sizes should result in similar minification times. ## Actual Behavior A 6% increase in input size causes a 150% increase in processing time, suggesting possible algorithmic complexity issues with certain code patterns. ---