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
$oj_m.$oj_f_makeBar = function()
{
return new $oj_oj._cls.$oj_c_Bar();
};
In practice, the performance improvement may be negligible. However, I'm trying to document all optimization ideas that I've been thinking about recently.
The text was updated successfully, but these errors were encountered:
Assume the following code:
oj generates the following code:
There are a few optimizations we can make here, based on the fact that
-[BaseObject init]
simply returns self.-[Foo initWithName:]
could be rewritten to:-[Foo makeBar]
could be rewritten to:In practice, the performance improvement may be negligible. However, I'm trying to document all optimization ideas that I've been thinking about recently.
The text was updated successfully, but these errors were encountered: