phlex
phlex copied to clipboard
Optimize nested tokens
After reading through #746 I had an idea about how to further optimise nested tokens (Arrays and Sets).
.compact.joinwas doing two iterations over the array: one to remove nils and one to build a string..gsubwas creating a new string unnecessarily.