From 44d731cebec9c95e3a5cfc1fe7b7aeafcb3fe3b4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 21 Apr 2009 11:14:46 -0700 Subject: 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 7b871d4..833e990 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -26,12 +26,12 @@ T_r_log := $(subst .r,$(log_suffix),$(T_r)) test_prefix = $(CURDIR)/test/install-$(RUBY_VERSION) http11_deps := $(addprefix ext/unicorn/http11/, \ - ext_help.h http11.c http11_parser.c http11_parser.h \ + ext_help.h http11.c http11_parser.h \ http11_parser.rl http11_parser_common.rl) inst_deps := $(wildcard bin/*) $(wildcard lib/*.rb) \ $(wildcard lib/*/*.rb) $(http11_deps) -ext/unicorn/http11/http11_parser.c: $(wildcard ext/unicorn/http11/*.rl) +ext/unicorn/http11/http11_parser.h: $(wildcard ext/unicorn/http11/*.rl) cd $(@D) && ragel http11_parser.rl -C -G2 -o $(@F) $(ruby) -i -p -e '$$_.gsub!(%r{[ \t]*$$},"")' $@ ext/unicorn/http11/Makefile: ext/unicorn/http11/extconf.rb $(http11_deps) -- cgit v1.2.3-24-ge0c7