From: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
To: "Дмитрий Степанов" <stepanov.dmit@gmail.com>
Cc: Steffen Weise <stweise.linux@gmail.com>, users@dpdk.org
Subject: Re: Find all matches with DPDK ACL
Date: Sat, 27 Nov 2021 02:56:53 +0300 [thread overview]
Message-ID: <20211127025653.113071f5@sovereign> (raw)
In-Reply-To: <CA+-SuJ3pYHcsNn_4ZhVDERe8FdWM8Qaia+My+Qx8OEkA90kLuQ@mail.gmail.com>
2021-11-26 17:56 (UTC+0300), Дмитрий Степанов:
> I have approx 5K-10K (5 000 - 10 000) rules.
> On average I have 10-20 matches (60 max).
> I don't need to insert/delete/update rules frequently - you can consider
> rules being permanent which are loaded once on startup.
Never mind my suggestion then.
I made a benchmark with your case parameters
and even a brute-force scan of all rules outperforms regex database.
When Hyperscan performed well in my experience,
it was with <100 rules and any single match.
Sorry for misdirection and thanks for an interesting algo problem :)
prev parent reply other threads:[~2021-11-26 23:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-18 16:55 Дмитрий Степанов
2021-11-24 10:06 ` Steffen Weise
2021-11-24 15:19 ` Dmitry Kozlyuk
2021-11-26 13:53 ` Дмитрий Степанов
2021-11-26 14:12 ` Dmitry Kozlyuk
2021-11-26 14:56 ` Дмитрий Степанов
2021-11-26 23:56 ` Dmitry Kozlyuk [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211127025653.113071f5@sovereign \
--to=dmitry.kozliuk@gmail.com \
--cc=stepanov.dmit@gmail.com \
--cc=stweise.linux@gmail.com \
--cc=users@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).