KEMBAR78
Regular expressions scalability issues due to lock on "s_livecode". · Issue #24688 · dotnet/runtime · GitHub
Skip to content

Regular expressions scalability issues due to lock on "s_livecode". #24688

@IlyaGrebnov

Description

@IlyaGrebnov

Static Regex methods takes global lock on "s_livecode" inside LookupCachedAndUpdate. This cause scalability issues. We understand that this problem could be addressed on App side, but imho it would be much better to make Regex cache per processor instead of global (similar to what @stephentoub did for Timer lock), so it will be more forgiving for bad coding practice.

We would also participate back port to Desktop framework if this ever get fixed.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions