next.js
361d4cf0 - perf: Make RSC pass use `Atom` instead of `String` (#75593)

Commit
1 year ago
perf: Make RSC pass use `Atom` instead of `String` (#75593) ### What? Use `swc_atoms::Atom` instead of `String` in `next-swc`. ### Why? `Atom` does not allocate if another instance has the same value, meaning that `clone()` is a single atomic operation. But `String` allocates regardless of any other occurrence.
Author
Parents
Loading