Commit graph

4 commits

Author SHA1 Message Date
Luca Deri
9bd28b1f54 Added code for tracking C functions that do not fill up the Lua state properly. In case of issues
detected, the misbehaving function is reported on the screen for easy patching. Fixed a couple
of functions that were not setting the return state properly.

Lua VMs are reset before reuse.

Minor code cleanup and rename (Vm -> VM).
2021-10-14 19:03:18 +02:00
Simone Mainardi
d989f8d2c6 Reworks notifications thread to avoid Redis accesses
Fixes #4673
2020-12-29 18:48:55 +01:00
emanuele-f
458a773a93 Refactor internal scripts for cleaner code 2019-12-31 16:53:32 +01:00
emanuele-f
c74fa6e908 Implement reusable lua engine
The same Lua vm is now reused. After 5 minutes the vm is destroyed and
reloaded to prevent memory to grow too much. inotify is used to detected
changes in the filesystem (partially implemented, must implement a recursive
watch)

This optimizes periodic scripts calls by a 10x factor.
2019-12-24 18:35:58 +01:00