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
We should add the ability to activate a lazy mode for the daemon to optimize memory. There are several places where this can bring a memory optimization:
Message header parsing, removing the memoize decorator
Message part extraction
Regex rules compilation, instead of pre-compiling rules these should be compiled on the spot. A compiled regular expression will take more memory than just a string
Meta rules, discard storing the location and preparing the rule in the init and move it post-parsing and only store the resulting lambda match method. ''This should actually be done by default'' as there is no immediate benefit of storing this extra data.
The "lazy" mode should be turned on by default. And this should be configurable via configuration file or command line (whichever is easier).
To deactivate lazy mode run match.py or daemon with option ("-dl", "--deactivate-lazy").
Acceptance criteria:
Everything should work the same as before
The text was updated successfully, but these errors were encountered:
We should add the ability to activate a lazy mode for the daemon to optimize memory. There are several places where this can bring a memory optimization:
The "lazy" mode should be turned on by default. And this should be configurable via configuration file or command line (whichever is easier).
To deactivate lazy mode run match.py or daemon with option ("-dl", "--deactivate-lazy").
Acceptance criteria:
The text was updated successfully, but these errors were encountered: