From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Mark Smith <marks439@gmail.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] acl: Improve acl_bld.c sort_rules()
Date: Sat, 24 Oct 2015 22:54:09 +0200 [thread overview]
Message-ID: <1765839.LM5i19bLmN@xps13> (raw)
In-Reply-To: <2601191342CEEE43887BDE71AB97725836A81DD8@irsmsx105.ger.corp.intel.com>
> > Replace O(n^2) list sort with an O(n log n) merge sort.
> > The merge sort is based on the solution suggested in:
> > http://cslibrary.stanford.edu/105/LinkedListProblems.pdf
> > Tested sort_rules() improvement:
> > 100K rules: O(n^2): 31382 milliseconds; O(n log n): 10 milliseconds
> > 259K rules: O(n^2): 133753 milliseconds; O(n log n): 22 milliseconds
> >
> > Signed-off-by: Mark Smith <marsmith@akamai.com>
>
> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Applied, thanks
prev parent reply other threads:[~2015-10-24 20:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-26 19:25 Mark Smith
2015-09-02 9:05 ` Ananyev, Konstantin
2015-10-24 20:54 ` Thomas Monjalon [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=1765839.LM5i19bLmN@xps13 \
--to=thomas.monjalon@6wind.com \
--cc=dev@dpdk.org \
--cc=marks439@gmail.com \
/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).