commit | 0cac26cd8841491ab205357d4a7248a6e2d44e08 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Jan 14 16:55:42 2019 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Mon Jan 14 19:33:17 2019 +0100 |
tree | 42e970edce8b5604eb96c4d835648f05f52899cb | |
parent | 76e84f50919be89d8c7c0af4e9dd2be95cf45036 [diff] |
MEDIUM: backend: move all LB algo parameters into an union Since all of them are exclusive, let's move them to an union instead of eating memory with the sum of all of them. We're using a transparent union to limit the code changes. Doing so reduces the struct lbprm from 392 bytes to 372, and thanks to these changes, the struct proxy is now down to 6480 bytes vs 6624 before the changes (144 bytes saved per proxy).