next.js
fd8b0543 - perf: Make `next-page-static-info` use `Atom` instead of `String` (#75587)

Commit
1 year ago
perf: Make `next-page-static-info` use `Atom` instead of `String` (#75587) ### 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