Return-Path: Subject: Re: [PATCH] Performance optimizations for sbcenc utility From: Marcel Holtmann To: Siarhei Siamashka Cc: linux-bluetooth@vger.kernel.org In-Reply-To: <200901191305.36942.siarhei.siamashka@nokia.com> References: <200901161812.45754.siarhei.siamashka@nokia.com> <1232291744.5095.14.camel@californication> <200901191305.36942.siarhei.siamashka@nokia.com> Content-Type: text/plain Date: Mon, 19 Jan 2009 13:04:21 +0100 Message-Id: <1232366661.19390.14.camel@californication> Mime-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Siarhei, > > > The attached patch improves performance of sbcenc utility. This is not > > > very useful in general and does not improve the SBC codec itself. But > > > when using sbcenc utility for benchmarking, an extra unneeded overhead > > > skews the results a bit and this might be worth fixing. > > > > > > Before patch: > > > > > > real 0m14.984s > > > user 0m12.981s > > > sys 0m1.924s > > > > > > After patch: > > > > > > real 0m12.279s > > > user 0m11.865s > > > sys 0m0.360s > > > > > > > > > Christian, you fixed some bugs in sbcenc a bit earlier. Could you please > > > also check if all your testcases also work fine with this new patch > > > applied and it does not break anything? > > > > patch has been applied to make testing easier. Send fixes if it breaks > > something. > > Well, appears that it really broke something. I forgot to update the part of > code which handled non 24 byte headers. A fix is attached. Now it should > work fine in all cases. patch has been applied. Thanks. Regards Marcel