p8a / yara-java

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

Add ability to use YaraScanner in a multithreaded environment #15

Closed shollander closed 7 years ago

shollander commented 7 years ago

This patch enables YaraScanner to be reused across threads. In performance testing I found that reusing the YaraScanner can increase performance by up to 50%. This is most likely due to the overhead of creating the YARA_RULES object. The performance increase is only relevant to embedded mode.