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
I noticed what if the app does not use i18n at all and app has not any lang files, method ::getLabel() work really really slow, because it tries to find get label with Yii::t(). I noticed this problem in gridView.
I think the right solution is to change public static $messageCategory = 'app';
to public static $messageCategory;
and make a check in ::getLabel() method.
I noticed, if i have disabled i18n my yii2 app, much faster use Enum::$list[$id] instead if Enum::getLabel($id). The difference is hundreds of ms.
The text was updated successfully, but these errors were encountered:
I noticed what if the app does not use i18n at all and app has not any lang files, method ::getLabel() work really really slow, because it tries to find get label with Yii::t(). I noticed this problem in gridView.
I think the right solution is to change
public static $messageCategory = 'app';
to
public static $messageCategory;
and make a check in ::getLabel() method.
I noticed, if i have disabled i18n my yii2 app, much faster use
Enum::$list[$id]
instead ifEnum::getLabel($id)
. The difference is hundreds of ms.The text was updated successfully, but these errors were encountered: