next.js
49b93c6d - perf: Make server action pass use `Atom` instead of `String` (#75594)

Commit
1 year ago
perf: Make server action pass use `Atom` instead of `String` (#75594) ### 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