commit | 38c5fd60b9f31ec0303f59dada503513d7065ca2 | [log] [tgz] |
---|---|---|
author | Thierry FOURNIER <tfournier@exceliance.fr> | Tue Mar 10 02:40:29 2015 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Mar 10 17:18:24 2015 +0100 |
tree | f14bf40192edfd526cad6b0007904c07f0df0cac | |
parent | 76bd97f405805135588f3cf59867e2613dbeb6d2 [diff] |
MEDIUM: lua: make the functions hlua_gethlua() and hlua_sethlua() faster Lua 5.3 provides an opaque space associated with each coroutine stack. This patch uses this lot of memory to store the "struct hlua *" associated pointer. This patch makes the retrieval of the "struct hlua *" associated struct faster because it replace a lookup in a tree by an immediate access to the data.