From: "Ananyev, Konstantin" <konstantin.ananyev@intel.com>
To: Mark Smith <marks439@gmail.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] acl: Improve acl_bld.c sort_rules()
Date: Wed, 2 Sep 2015 09:05:09 +0000 [thread overview]
Message-ID: <2601191342CEEE43887BDE71AB97725836A81DD8@irsmsx105.ger.corp.intel.com> (raw)
In-Reply-To: <1440617118-1583-1-git-send-email-marsmith@akamai.com>
> -----Original Message-----
> From: Mark Smith [mailto:marks439@gmail.com]
> Sent: Wednesday, August 26, 2015 8:25 PM
> To: Ananyev, Konstantin; dev@dpdk.org
> Cc: rsanford@akamai.com; marsmith@akamai.com
> Subject: [PATCH] acl: Improve acl_bld.c sort_rules()
>
> 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>
> ---
next prev parent reply other threads:[~2015-09-02 9:05 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 [this message]
2015-10-24 20:54 ` Thomas Monjalon
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=2601191342CEEE43887BDE71AB97725836A81DD8@irsmsx105.ger.corp.intel.com \
--to=konstantin.ananyev@intel.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).