You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you run cmake with -DRETDEC_COMPILE_YARA=ON (the default), YARA rules that RetDec uses are compiled during the installation step, which makes decompilations run faster (no need to compile them on the fly during each decompilation).
Drawback
YARA rules are compiled sequentially, which takes around 50 seconds to compile them on my machine.
Suggestion
We could parallelize their compilation, either by using all available cores (easy), or by taking the /m or -j parameter into account (harder, as I am not sure if we are able to get the value of this parameter in install-yara.py).
The text was updated successfully, but these errors were encountered:
).
When you run cmake with -DRETDEC_COMPILE_YARA=ON (the default), YARA rules that
RetDec uses are compiled during the installation step, which makes
decompilations run faster (no need to compile them on the fly during each
decompilation). The issue is that YARA rules are compiled sequentially, which
takes around 50 seconds to compile them on my machine.
This commit parallelizes their compilation by using all available cores. Now,
the compilation takes around 10 seconds on my machine (Intel Xeon E5-1650 @
3.60GHz, 6 cores with HT = 12 threads).
* support: Parallelize compilation of YARA rules during installation (#540).
When you run cmake with -DRETDEC_COMPILE_YARA=ON (the default), YARA rules that
RetDec uses are compiled during the installation step, which makes
decompilations run faster (no need to compile them on the fly during each
decompilation). The issue is that YARA rules are compiled sequentially, which
takes around 50 seconds to compile them on my machine.
This commit parallelizes their compilation by using all available cores. Now,
the compilation takes around 10 seconds on my machine (Intel Xeon E5-1650 @
3.60GHz, 6 cores with HT = 12 threads).
* support: Do not create a pool when there are no YARA files to compile.
There is no need to create a thread pool when there are no YARA files to
compile. This saves us a bit of time during each re-install.
Current state
When you run
cmake
with-DRETDEC_COMPILE_YARA=ON
(the default), YARA rules that RetDec uses are compiled during the installation step, which makes decompilations run faster (no need to compile them on the fly during each decompilation).Drawback
YARA rules are compiled sequentially, which takes around 50 seconds to compile them on my machine.
Suggestion
We could parallelize their compilation, either by using all available cores (easy), or by taking the
/m
or-j
parameter into account (harder, as I am not sure if we are able to get the value of this parameter ininstall-yara.py
).The text was updated successfully, but these errors were encountered: