]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: lua: Lua initialisation "on demand"
authorThierry FOURNIER <tfournier@exceliance.fr>
Fri, 27 Feb 2015 17:37:27 +0000 (18:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 28 Feb 2015 22:12:37 +0000 (23:12 +0100)
commit05ac42455fab8bba252bf124d6c450402429fd39
treee1b78bda3dbbf9932b013be7a09cc5bffffabfd0
parent80f5fae591031afffdbdba3a4b66fb9e8ffdbcb7
MEDIUM: lua: Lua initialisation "on demand"

Actually, the Lua context is always initilized in each
session, even if the session doesn't use Lua. This
behavior cause 5% performances loss.

This patch initilize the Lua only if it is use by the
session. The initialization is now on demand.
src/hlua.c
src/session.c