next.js
c1d9a048 - perf: Make barrel optimizer use `Atom` instead of `String` (#75592)

Commit
1 year ago
perf: Make barrel optimizer use `Atom` instead of `String` (#75592) ### 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