]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: lua: remove struct hlua_channel
authorWilly Tarreau <w@1wt.eu>
Tue, 10 Mar 2015 13:07:50 +0000 (14:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 Mar 2015 19:41:47 +0000 (20:41 +0100)
commit47860ed5050030567bf1c659b7a838c139699c46
treee57270b67be28f49f3d052c83ae1edf098d3a932
parent2a71af4c4f5124aa6a2c635614ecfbffbd3ac604
MEDIUM: lua: remove struct hlua_channel

Since last cleanups, this one was only used to carry a struct channel.
Removing it makes the code a bit cleaner (no more chn->chn) and easier
to follow (no more abstraction for a common type). Interestingly it
happens to also make the Lua code slightly faster (about 1.5%) when
using channels, probably thanks to less pointer dereferences and maybe
the use of lua_pushlightuserdata().
include/types/hlua.h
src/hlua.c