t2ym / i18n-element

I18N Base Element for Lit and Polymer
Other
9 stars 1 forks source link

[performance] Calibrate evaluation orders of conditions #76

Closed t2ym closed 5 years ago

t2ym commented 5 years ago

[performance] Calibrate evaluation orders of conditions

Since instanceof operations are somewhat heavier than typeof and string comparison, the orders of evaluation are calibrated to optimize performance