]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: threads: flatten the per-thread cpu-map
authorWilly Tarreau <w@1wt.eu>
Fri, 3 May 2019 07:41:23 +0000 (09:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 3 May 2019 07:46:45 +0000 (09:46 +0200)
commit81492c989c3898d8492a8d6050a97eccf261107f
tree3d2ce83ce66d36b467da9cd035e01a725f217590
parenta48237fd0707a78a353613a45130f4b433b19b0f
MINOR: threads: flatten the per-thread cpu-map

When we initially experimented with threads and processes support, we
needed to implement arrays of threads per process for cpu-map, but this
is not needed anymore since we support either threads or processes.
Let's simply make the thread-based cpu-map per thread and not per
thread and per process since that's not used anymore. Doing so reduces
the global struct from 33kB to 1.5kB.
include/types/global.h
src/cfgparse-global.c
src/haproxy.c