Inline the call to `DatabaseObject::__get()`
authorAlexander Ebert <ebert@woltlab.com>
Tue, 16 Apr 2024 15:48:34 +0000 (17:48 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 16 Apr 2024 15:48:34 +0000 (17:48 +0200)
commiteaf3ce8100824d6c805b6d588b67d02bb58a18b7
treeacfcd565d3904849081ee84f0ac7b9886ccca935
parent75f848c4f07ef00dfa0b191665f40d8a81fa2d0c
Inline the call to `DatabaseObject::__get()`

`User::__get()` is called very often on each request, easily stacking up thousands of calls.

On a well populated board list this can easily account for up to 1% of runtime. Inlining the check against `$data` cuts down the time spent inside by up to 2/3.
wcfsetup/install/files/lib/data/user/User.class.php