| ▲ | root_axis 8 hours ago | ||||||||||||||||
I'm surprised to see it's that much faster than SWC. Does anyone have any general details on how that performance is achieved? | |||||||||||||||||
| ▲ | grabshot_dev 2 hours ago | parent | next [-] | ||||||||||||||||
One thing worth noting: beyond raw parse speed, oxc's AST is designed to be allocation-friendly with arena allocation. SWC uses a more traditional approach. In practice this means oxc scales better when you're doing multiple passes (lint + transform + codegen) on the same file because you avoid a ton of intermediate allocations. We switched a CI pipeline from babel to SWC last year and got roughly 8x improvement. Tried oxc's transformer more recently on the same codebase and it shaved off another 30-40% on top of SWC. The wins compound when you have thousands of files and the GC pressure from all those AST nodes starts to matter. | |||||||||||||||||
| ▲ | ameliaquining 7 hours ago | parent | prev [-] | ||||||||||||||||
They wrote a post (https://oxc.rs/docs/learn/performance) but it doesn't include direct comparisons to SWC. | |||||||||||||||||
| |||||||||||||||||