unionize header token array 20/3020/1
authorAndy Green <andy.green@linaro.org>
Wed, 6 Feb 2013 11:23:40 +0000 (20:23 +0900)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:31 +0000 (13:01 -0800)
commitcf1608fe77e520af0499e6effda406f0c8090474
tree8365390337da992ba24c56458ab45160eb473624
parent21c897883b494ad6264ce978891ef784f76c1125
unionize header token array

This reduces the size of struct libwebscocket from 4840 to 4552
on x86_64

There are also big benefits on malloc pool fragmentation and
allocation, the header allocations only exist between the first
peer communication and websocket connection establishment for
both server and client.

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/client-handshake.c
lib/client.c
lib/handshake.c
lib/parsers.c
lib/private-libwebsockets.h
lib/server-handshake.c
lib/server.c