All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Jarzmik <robert.jarzmik@free.fr>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: [PATCH] pxa-camera: simplify the .buf_queue path by merging two loops
Date: Wed, 25 Mar 2009 21:40:20 +0100	[thread overview]
Message-ID: <87r60lpc97.fsf@free.fr> (raw)
In-Reply-To: <Pine.LNX.4.64.0903250935090.5795@axis700.grange> (Guennadi Liakhovetski's message of "Wed\, 25 Mar 2009 09\:37\:15 +0100 \(CET\)")

Guennadi Liakhovetski <g.liakhovetski@gmx.de> writes:

> pxa_dma_update_sg_tail() is called only once, runs exactly the same loop as the
> caller and has to recalculate the last element in an sg-list, that the caller
> has already calculated. Eliminate redundancy by merging the two loops and
> re-using the calculated pointer. This also saves a bit of performance which is
> always good during video-capture.
>
> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
> ---
>
> On Mon, 16 Mar 2009, Robert Jarzmik wrote:
>
>> Guennadi Liakhovetski <g.liakhovetski@gmx.de> writes:
>> 
>> > pxa_dma_update_sg_tail is called only here, why not inline it and also put 
>> > inside one loop?
>> As for the inline, I'm pretty sure you know it is automatically done by gcc.
>> 
>> As for moving it inside the loop, that would certainly improve performance. Yet
>> I find it more readable/maintainable that way, and will leave it. But I won't be
>> bothered at all if you retransform it back to your view, that's up to you.
>
> Robert, this is what I'm going to apply on top of your patch-series. 
> Please, object:-)
Here you are : :)
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>

--
Robert

  reply	other threads:[~2009-03-25 20:40 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-13 23:17 [PATCH v2 0/4] pxa_camera: DMA redesign Robert Jarzmik
2009-03-13 23:17 ` [PATCH v2 1/4] pxa_camera: Enforce YUV422P frame sizes to be 16 multiples Robert Jarzmik
2009-03-13 23:17   ` [PATCH v2 2/4] pxa_camera: remove YUV planar formats hole Robert Jarzmik
2009-03-13 23:17     ` [PATCH v2 3/4] pxa_camera: Redesign DMA handling Robert Jarzmik
2009-03-13 23:17       ` [PATCH v2 4/4] pxa_camera: Fix overrun condition on last buffer Robert Jarzmik
2009-03-16 11:25         ` Guennadi Liakhovetski
2009-03-16 19:37           ` Robert Jarzmik
2009-03-16 11:22       ` [PATCH v2 3/4] pxa_camera: Redesign DMA handling Guennadi Liakhovetski
2009-03-16 19:36         ` Robert Jarzmik
2009-03-16 20:42           ` Trent Piepho
2009-03-25  8:37           ` [PATCH] pxa-camera: simplify the .buf_queue path by merging two loops Guennadi Liakhovetski
2009-03-25 20:40             ` Robert Jarzmik [this message]
2009-03-16 10:50     ` [PATCH v2 2/4] pxa_camera: remove YUV planar formats hole Guennadi Liakhovetski
2009-03-16 19:37       ` Robert Jarzmik
2009-03-16  9:25   ` [PATCH v2 1/4] pxa_camera: Enforce YUV422P frame sizes to be 16 multiples Guennadi Liakhovetski
2009-03-16 18:26     ` Robert Jarzmik
2009-03-16 20:29       ` Trent Piepho
2009-03-16 20:47         ` Guennadi Liakhovetski

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=87r60lpc97.fsf@free.fr \
    --to=robert.jarzmik@free.fr \
    --cc=g.liakhovetski@gmx.de \
    --cc=linux-media@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.