diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-02-09 22:55:08 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-02-09 22:55:08 -0800 |
commit | 47c50ed7ebb2a97c2d289eede169f3e2e3f5e89b (patch) | |
tree | 4b730bbaa4ca73eed21f5e26b58c027462373401 | |
parent | a7655b8f16f04d44ff422f3ca4eafcb5f0d3c0ca (diff) | |
download | unicorn-47c50ed7ebb2a97c2d289eede169f3e2e3f5e89b.tar.gz |
Earlier elements of a Struct (in both Ruby and C) are faster to access, so put more-often accessed elements like :app first. This does not noticeably affect most applications, but may matter to some micro benchmarks somewhere...
-rw-r--r-- | lib/unicorn.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb index e3e4315..e8d869b 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -34,9 +34,9 @@ module Unicorn # Listener sockets are started in the master process and shared with # forked worker children. - class HttpServer < Struct.new(:listener_opts, :timeout, :worker_processes, + class HttpServer < Struct.new(:app, :timeout, :worker_processes, :before_fork, :after_fork, :before_exec, - :logger, :pid, :app, :preload_app, + :logger, :pid, :listener_opts, :preload_app, :reexec_pid, :orig_app, :init_listeners, :master_pid, :config, :ready_pipe) include ::Unicorn::SocketHelper |