p8a / yara-java

Java bindings for Yara
Apache License 2.0
23 stars 25 forks source link

Question regarding thread safety #14

Closed shollander closed 7 years ago

shollander commented 7 years ago

I would like to use yara-java in a multithreaded environment. Which classes can be reused across multiple threads and which cannot? I am using the same rules for all files that I scan. In a simple performance test I get close to a 50% performance increase when reusing the YaraScanner object. I just don't know if it is safe to do so.

shollander commented 7 years ago

I just submitted a pull request #15 for enabling multithreaded reuse

p8a commented 7 years ago

Merged pull request, thanks!