Increase performance by 7% by not re-asking the same data.
commitb53da71c1f7a2d4bcc0004d09787c9f3ba122fb3
authorPhilipp Marek <philipp@marek.priv.at>
Mon, 19 Feb 2018 15:08:33 +0000 (19 16:08 +0100)
committerStas Boukarev <stassats@gmail.com>
Tue, 20 Feb 2018 16:35:18 +0000 (20 19:35 +0300)
tree7bc094da835e65416a31cdb94947e4087c45bda4
parent9b9a760497ce874f23aa0be13eb6800692dc4b47
Increase performance by 7% by not re-asking the same data.

Going to kernel-space is expensive; even more so after the
recent SPECTRE/MELTDOWN mitigations. Just caching the remote
and local socket addresses already gives a nice boost.

Measurements via "wrk --latency <URL>", before and after:
  104008 requests in 10.00s, 99.98MB read
vs.
  111069 requests in 10.00s, 106.77MB read
acceptor.lisp