While reading articles about optimization, I read about the accf_http module.
The man page of the module is here, where you can read:
The utility of accf_http is such that a server will not have to context switch several times before performing the initial parsing of the request.
To load this module, use the following command:
# kldload accf_http
To load it at boot time, add the following line in /boot/loader.conf:
To check if the module is loaded, use the command kldstat:
# kldstat Id Refs Address Size Name 1 4 0xc0400000 906518 kernel 2 1 0xc0d07000 6a32c acpi.ko 3 1 0xc5e65000 2000 accf_http.ko