Closed OTP-Maintainer closed 3 years ago
rickard
said:
Thanks for the bug report!
There were two issues in cooperation causing this:
* UTF8 validation of the subject did not yield and caused no reduction cost
* When the global option is passed the UTF8 validation was performed once for each match
Since the validation did not cost any reductions and the matching in this subject is really cheap, multiple matches including validations were performed in one go without scheduling out the calling process, which in turned caused the scheduler to be blocked for a long time. The repeated validations also caused the whole operation to take a very long time to complete.
I've published a pull request [PR-2250|https://github.com/erlang/otp/pull/2250] that should fix these issues. This (or a modification of it, if any issues are found with it) will at least be released in the next maintenance patch (OTP 22.1).
rickard
said:
I have merged [PR-2250|https://github.com/erlang/otp/pull/2250] into the {{maint}} branch now. That is, it will be released in next maintanence patch (OTP 22.1).
Original reporter:
lelf
Affected version:Not Specified
Fixed in version:OTP-22.1
Component:erts
Migrated from: https://bugs.erlang.org/browse/ERL-876