commit | 2ec2274f906fdda55f49cbc4f84ab650e64603e7 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Mar 10 14:27:20 2015 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Mar 11 20:41:47 2015 +0100 |
tree | ed97e01a767657625a3e7a7448199c1e585b7050 | |
parent | 47860ed5050030567bf1c659b7a838c139699c46 [diff] |
MEDIUM: lua: remove hlua_sample_fetch This struct used to carry only a sample fetch function. Thanks to lua_pushuserdata(), we don't need to have the Lua engine allocate that struct for us and we can simply push our pointer onto the stack. This makes the code more readable by removing several occurrences of "f->f->". Just like the previous patch, it comes with the nice effect of saving about 1.3% of performance when fetching samples from Lua.