CompactString is a memory-efficient string that can store up to 24 bytes on the stack before making a heap allocation. It's mostly a drop-in replacement for String, and you can learn more about it here.
We've had success improving performance by using CompactString in vidyut-prakriya, and it might also improve performance in vidyut-cheda.
A PR here would experiment with CompactString and quantify the performance change.
CompactString
is a memory-efficient string that can store up to 24 bytes on the stack before making a heap allocation. It's mostly a drop-in replacement for String, and you can learn more about it here.We've had success improving performance by using CompactString in
vidyut-prakriya
, and it might also improve performance invidyut-cheda
.A PR here would experiment with CompactString and quantify the performance change.