Re: [apparmor] [patch] aa-decode performance tuning

2012-11-06 Thread Christian Boltz
Hello, Am Montag, 5. November 2012 schrieb John Johansen: On 11/01/2012 11:06 AM, Christian Boltz wrote: here's a patch that speeds up aa-decode - in my case from 1.9s to 0.3s (test log with about 900 lines, with 16 encoded lines) The trick is to use bash regex matching instead of

Re: [apparmor] [patch] aa-decode performance tuning

2012-11-05 Thread John Johansen
On 11/01/2012 11:06 AM, Christian Boltz wrote: Hello, here's a patch that speeds up aa-decode - in my case from 1.9s to 0.3s (test log with about 900 lines, with 16 encoded lines) The trick is to use bash regex matching instead of calling egrep for each line. It would probably also be

[apparmor] [patch] aa-decode performance tuning

2012-11-01 Thread Christian Boltz
Hello, here's a patch that speeds up aa-decode - in my case from 1.9s to 0.3s (test log with about 900 lines, with 16 encoded lines) The trick is to use bash regex matching instead of calling egrep for each line. It would probably also be possible to replace the sed calls with bash regex

Re: [apparmor] [patch] aa-decode performance tuning

2012-11-01 Thread Seth Arnold
Hey that's pretty awesome :) do you know which version of bash introduced regex? -Original Message- From: Christian Boltz appar...@cboltz.de Sender: apparmor-boun...@lists.ubuntu.com Date: Thu, 01 Nov 2012 19:06:21 To: apparmorapparmor@lists.ubuntu.com Subject: [apparmor] [patch] aa

Re: [apparmor] [patch] aa-decode performance tuning

2012-11-01 Thread Christian Boltz
Hello, Am Donnerstag, 1. November 2012 schrieb Seth Arnold: Hey that's pretty awesome :) do you know which version of bash introduced regex? http://www.linuxjournal.com/content/bash-regular-expressions says: Since version 3 of bash (released in 2004) there is another option: bash's