From: antirez Date: Fri, 6 May 2011 15:25:19 +0000 (+0200) Subject: call the Lua hook with minor frequency. It is already enough to call it every 100000... X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/bcc72bc38101e60a6e6a08d70038d7bc8307233f call the Lua hook with minor frequency. It is already enough to call it every 100000 istructions for near millisecond precision. --- diff --git a/src/scripting.c b/src/scripting.c index b4297e60..7d222651 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -227,7 +227,7 @@ void scriptingInit(void) { /* Set an hook in order to be able to stop the script execution if it * is running for too much time. */ - lua_sethook(lua,luaMaskCountHook,LUA_MASKCOUNT,10000); + lua_sethook(lua,luaMaskCountHook,LUA_MASKCOUNT,100000); server.lua = lua; }