We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var i = 2; var o = {hello:1, world:i}
Currently generates
$i = 2; $o = new HxAnon(["hello" => 1, "world" => $i])
But this performs 50% faster:
$i = 2; $o = new class($i) extends HxAnon { public function __construct(&$i) { $this->hello = 1; $this->world = $i; } }
PS: don't forget to remove constructor declaration from php.Boot.HxAnon
php.Boot.HxAnon
The text was updated successfully, but these errors were encountered:
does this also support random field adding/deleting? IIRC it has to be supported by anon object values (which is unfortunate).
Sorry, something went wrong.
Yeah Reflect.deleteField is a real party-pooper...
does this also support random field adding/deleting?
Yes adding/deleting fields is supported.
1e4ed55
[php] revert anonymous objects optimization (#7916, fixes #10736)
8f210b4
3981280
RealyUniqueName
No branches or pull requests
Currently generates
But this performs 50% faster:
PS: don't forget to remove constructor declaration from
php.Boot.HxAnon
The text was updated successfully, but these errors were encountered: