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
It seems like this will become even more of a problem with PHP 8.1+, as the detection mechanism has changed to be more precise.
Re:
ensure we only use it if really necessary to decrease the amount of times it runs
@ediamin Can you please document the exact scenarios here where mb_detect_encoding is being used, and then see whether its usage can be reduced in some way?
Additionally if we do not set charset as utf-8 which is required by the AMP, the source will convert to utf-8 from the provided encoding. So for the optimized performance, we should always use the UTF-8 charset in the source or Document param, or at least provide a valid charset other than the auto.
Profiling the current test suite showed that the use of
mb_detect_encoding()
made up more than 40% of the execution time of the entire test suite.We should:
The text was updated successfully, but these errors were encountered: