Slide 14
Slide 14 text
Performance
Why is Oxc so fast?
3. Think about data oriented design
Memory IO is generally more likely to be a bottleneck than CPU IO.
Rust enables robust data-oriented programming in its type system.
Oxc forces the test to restrict the size of the enum as follows.
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
#[test]
fn no_bloat_enum_sizes() {
use std::mem::size_of;
use crate::ast::*;
assert_eq!(size_of::(), 16);
assert_eq!(size_of::(), 16);
assert_eq!(size_of::(), 16);
}
Can oxc be the next generation JS toolchain development platform?
2024-07-26 | Vue.js v-tokyo Meetup #21 14 / 23