From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>,
Sascha Hauer <s.hauer@pengutronix.de>
Subject: Re: [PATCH 1/2] fip: Store image data in single buffer
Date: Mon, 24 Feb 2025 10:09:38 +0100 [thread overview]
Message-ID: <174038817832.624372.5677842270749676017.b4-ty@pengutronix.de> (raw)
In-Reply-To: <20250217122538.3216703-1-s.hauer@pengutronix.de>
On Mon, 17 Feb 2025 13:25:37 +0100, Sascha Hauer wrote:
> Right now in fip_parse() we read the whole FIP image into an allocated
> buffer, then allocate buffers for the different blobs contained in the
> FIP image and memcpy the blobs there from the full buffer. Let's
> optimize this a bit by keeping the full buffer. Instead of allocating
> separate buffers for the blobs, just put pointers to the full buffers
> into struct fip_image and set the buf_no_free flag indicating that they
> should not be freed.
>
> [...]
Applied, thanks!
[1/2] fip: Store image data in single buffer
https://git.pengutronix.de/cgit/barebox/commit/?id=e48141941199 (link may not be stable)
[2/2] fip: add function to parse FIP from a buffer
https://git.pengutronix.de/cgit/barebox/commit/?id=748ba0627681 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
prev parent reply other threads:[~2025-02-24 9:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-17 12:25 Sascha Hauer
2025-02-17 12:25 ` [PATCH 2/2] fip: add function to parse FIP from a buffer Sascha Hauer
2025-02-24 9:09 ` Sascha Hauer [this message]
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=174038817832.624372.5677842270749676017.b4-ty@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox