DimaSol opened a new issue, #6462:
URL: https://github.com/apache/incubator-kie-drools/issues/6462

   Hi,
   
   I’m running a multi-threaded application with dozens of concurrent threads 
evaluating Drools rules.
   
   During profiling, I noticed that the application spends significant time 
compiling regex patterns used by the MatchesOperator. While investigating, I 
found the drools.matches.compiled.cache.count system property that enables 
caching of compiled regex patterns.
   
   However, enabling this cache actually made performance worse due to 
contention on the concurrent map locks.
   
   Would it be possible for the regex pattern to be embedded directly in the 
precompiled Java predicate as a member field? This would avoid cache contention 
and improve performance in concurrent scenarios.
   
   I’d be happy to contribute code for this enhancement if someone can provide 
guidance on where to make the changes (e.g., in the compiler or the Maven KJAR 
plugin).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to