]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM/MEDIUM: lua: executes the garbage collector only when using cosocket
authorThierry FOURNIER <tfournier@arpalert.org>
Sun, 27 Sep 2015 20:53:33 +0000 (22:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 27 Sep 2015 20:56:40 +0000 (22:56 +0200)
commit7c39ab4ac275e84c6a4244bcc9de1cb578fd82e5
treee529ec6871911b0a6ba640821632ea071e5f7da9
parent6ab4d8ec0ee59f743c7099c2a984b620d350b4c9
OPTIM/MEDIUM: lua: executes the garbage collector only when using cosocket

The garbage collector is a little bit heavy to run, and it was added
only for cosockets. This patch prevent useless executions when no
cosockets are used.
include/types/hlua.h
src/hlua.c