app/regex: read data file once at startup
authorOphir Munk <ophirmu@nvidia.com>
Sun, 10 Jan 2021 11:10:20 +0000 (11:10 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 12 Jan 2021 22:59:33 +0000 (23:59 +0100)
commitf5cffb7eb7fb6c2ddcfcc706c52faf538522eab7
treee91b1338c529595d3a570dfa1921e86ccc093089
parent4545bd0088021386cb1fad40203bb56cb53a65af
app/regex: read data file once at startup

Up to this commit the input data file was read from scratch for each QP,
which is redundant. Starting from this commit the data file is read only
once at startup. Each QP will clone the data.

Signed-off-by: Ophir Munk <ophirmu@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
app/test-regex/main.c