public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] tools: mkimage can read input on /dev/stdin
Date: Sun, 28 Sep 2014 00:21:49 +0200	[thread overview]
Message-ID: <20140927222150.03C49380185@gemini.denx.de> (raw)
In-Reply-To: <201409280001.26383.marex@denx.de>

Dear Marek,

In message <201409280001.26383.marex@denx.de> you wrote:
> 
> > Can you please provide values for the size of the binary and the
> > execution time?
> > 
> > It's not really critical, but I'd like to understand the impact of
> > your changes.  You use case is pretty exotic, so it seems a valid
> > question to me to try to understand what the extended functionality
> > costs.
> 
> Won't it be better to focus on the overall concept first and dig in the finer 
> details later ?
> 
> I think right now, the question is -- do we want to support stdin as a source of 
> payload for mkimage or not at all?

The general approach to new features in U-Boot is: 1) is it useful at
least to some? and 2) does it not hurt others?

Re 1), I think the use case is pretty exostic, but apparently there is
at least one user for that.

Re 2), we need some numbers.  Plain mmap() on a regular file is
supposed to be the fastest possible I/O method in a Unix OS, so we
should understand how much a change costs, or if it makes sense to
provide different implementations depending on input type (read() for
stdin vs. mmap() for regular files).  Or if the differences are so
small that this is all not worth the time we spend here.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
One difference between a man and a machine is that a machine is quiet
when well oiled.

  reply	other threads:[~2014-09-27 22:21 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-26 19:33 [U-Boot] [PATCH] tools: mkimage can read input on /dev/stdin Julien Castets
2014-09-27 12:54 ` Wolfgang Denk
2014-09-27 13:11   ` Julien Castets
2014-09-27 13:25     ` Wolfgang Denk
2014-09-27 17:28       ` Julien Castets
2014-09-27 18:24         ` Wolfgang Denk
2014-09-27 19:06           ` Julien Castets
2014-09-27 21:56             ` Wolfgang Denk
2014-09-27 22:01               ` Marek Vasut
2014-09-27 22:21                 ` Wolfgang Denk [this message]
2014-09-28  0:16               ` Julien Castets
2014-09-28  6:49                 ` Wolfgang Denk
2014-09-28 10:49                   ` Julien Castets
2014-09-28 17:48                     ` Wolfgang Denk

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=20140927222150.03C49380185@gemini.denx.de \
    --to=wd@denx.de \
    --cc=u-boot@lists.denx.de \
    /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