peachpie icon indicating copy to clipboard operation
peachpie copied to clipboard

change class PhpArray to a struct

Open jakubmisek opened this issue 5 years ago • 0 comments

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).

jakubmisek avatar Jan 28 '20 08:01 jakubmisek