http11: remove callbacks from structure
commit44d731cebec9c95e3a5cfc1fe7b7aeafcb3fe3b4
authorEric Wong <normalperson@yhbt.net>
Tue, 21 Apr 2009 18:14:46 +0000 (21 11:14 -0700)
committerEric Wong <normalperson@yhbt.net>
Tue, 21 Apr 2009 18:16:29 +0000 (21 11:16 -0700)
tree6314df91feba8944b0104cd631b659d4267a435c
parent7b6512704b53065fc12fedf1341657435c91d0a4
http11: remove callbacks from structure

There's no point in having redefinable callbacks if they're
always going to be pointed to the same function.  This reduces
the size of the http_parser structure to half its original size.

This change may actually make more sense in servers Mongrel/Thin
than Unicorn since Unicorn only has one parser per-process while
other servers can have hundreds or even thousands.
GNUmakefile
ext/unicorn/http11/http11.c
ext/unicorn/http11/http11_parser.h [moved from ext/unicorn/http11/http11_parser.c with 80% similarity]
ext/unicorn/http11/http11_parser.rl