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>
Sat, 8 Jun 2024 10:31:07 +0000 (12:31 +0200)
commit53d2a48cb1c9d8ca5916dbc0d4320b18683932e2
tree6c4bea88309a6e3f27826ae66b1ee6c492cc245c
parent3abbce578639cd7fa3b09676e3698beb81d18588
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