[RSS Feed/News] resolveExtendedClassToRoot has odd behavior that performs poorly

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
resolveExtendedClassToRoot gets called at least once per entity instance, as it's called from Entity's constructor. However, it takes a rather complicated approach to obtaining its value, and that approach will has unexpected behavior if called before extendClass.

Currently, it walks up the class hierarchy, relying on PHP's quirky class alias handling to detect XFCP classes. It calls is_subclass_of in a loop, but that's a relatively slow function, and it could be called quite a bit if...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom