From 8634b2a0119e698e362fdb765f30258e79e1dfd0 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Sun, 30 Apr 2017 17:43:26 -0300 Subject: added 'cachemiss' field to prototype to avoid wasting time checking hits that fail too often --- lfunc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lfunc.c') diff --git a/lfunc.c b/lfunc.c index 898104ac..5c6ebd27 100644 --- a/lfunc.c +++ b/lfunc.c @@ -1,5 +1,5 @@ /* -** $Id: lfunc.c,v 2.46 2017/04/06 13:08:56 roberto Exp roberto $ +** $Id: lfunc.c,v 2.47 2017/04/11 18:41:09 roberto Exp roberto $ ** Auxiliary functions to manipulate prototypes and closures ** See Copyright Notice in lua.h */ @@ -115,6 +115,7 @@ Proto *luaF_newproto (lua_State *L) { f->sizep = 0; f->code = NULL; f->cache = NULL; + f->cachemiss = 0; f->sizecode = 0; f->lineinfo = NULL; f->sizelineinfo = 0; -- cgit v1.2.3-55-g6feb