]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
worker: remove freelists for iohandle and iorequest
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 19 Sep 2018 16:39:17 +0000 (18:39 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 12 Oct 2018 15:36:43 +0000 (17:36 +0200)
commit308635573afef415cccd191fb07e7403118d4eff
tree5e4d65639b86ddc4cd7419b387ed654fac0261b7
parentc4608cce81e7132edf5b1674df96ca77499a5cbf
worker: remove freelists for iohandle and iorequest

A quick profiling showed no change in performance,
and in particular no change in time spent in malloc/free.
Some of the types in the union differed in size by a multiple.

If their performance won't be satisfying, replacements should be
considered first (e.g. jemalloc) before rolling our own stuff.
daemon/io.c
daemon/session.c
daemon/worker.c
daemon/worker.h