You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While we can't yet get rid of thread code inheritance, we can reduce its performance impact by disabling inheritance by default.
In practice, most people will rely on autoloading anyway, which is the preferred strategy, since this takes less memory and is more reliable. Code inheritance also has a massive performance cost in large applications (see #63), so this feature is just causing unnecessary slowdowns.
A more practical default setting would probably be INHERIT_INI | INHERIT_COMMENTS. (INHERIT_COMMENTS is needed for internal technical reasons - copied Runnable classes won't correctly inherit their doc comments without it).
The text was updated successfully, but these errors were encountered:
While we can't yet get rid of thread code inheritance, we can reduce its performance impact by disabling inheritance by default.
In practice, most people will rely on autoloading anyway, which is the preferred strategy, since this takes less memory and is more reliable. Code inheritance also has a massive performance cost in large applications (see #63), so this feature is just causing unnecessary slowdowns.
A more practical default setting would probably be
INHERIT_INI | INHERIT_COMMENTS
. (INHERIT_COMMENTS
is needed for internal technical reasons - copiedRunnable
classes won't correctly inherit their doc comments without it).The text was updated successfully, but these errors were encountered: