diff options
author | Phil Sutter <phil@nwl.cc> | 2018-09-25 14:24:16 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-09-26 10:32:28 +0200 |
commit | a428f882ebb6b79ca18c4d18946cacba40b8d84f (patch) | |
tree | 218ade0d0f09875f29630a1a515f23d84982fe1c /include/Makefile.am | |
parent | 61dc3b130c1b685ddae713ef9bede864f8bc7d33 (diff) |
tests: shell: Improve performance of 0021prio_0
This test called nft binary 391 times and took about 38s to complete on
my testing VM. Improve this by writing all commands into a temporary
file for processing in a single nft call. Reduces run-time to about 4s.
Interestingly, piping the sub-process's output directly into 'nft -f -'
leads to spurious errors (parser complaining about perfectly fine
syntax). It seems like handling large input this way is not possible.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include/Makefile.am')
0 files changed, 0 insertions, 0 deletions