peachpie
peachpie copied to clipboard
change class PhpArray to a struct
Similarly to PhpString - PhpArray is just a thin wrapper over the lazily copied OrderedDictionary. Every value pass causes an unnecessary new allocation of PhpArray.
Changing PhpArray to a struct has memory and performance benefits (although a lot of changes in the compiler and all libraries).