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.
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.