From: Rasmus Villemoes <ravi@prevas.dk>
To: Ross Burton <Ross.Burton@arm.com>
Cc: "openembedded-core@lists.openembedded.org"
<openembedded-core@lists.openembedded.org>,
Peter Kjellerstedt <peter.kjellerstedt@axis.com>,
Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>,
Richard Purdie <richard.purdie@linuxfoundation.org>
Subject: Re: [OE-core] [PATCH] classes/insane: improve HOME checks exceptions more
Date: Wed, 02 Dec 2026 10:06:55 +0100 [thread overview]
Message-ID: <87tskw3vbk.fsf@prevas.dk> (raw)
In-Reply-To: <868DA485-3940-40A7-8F96-69ABB7609956@arm.com>
On Mon, Nov 30 2026, Ross Burton <Ross.Burton@arm.com> wrote:
> On 27 Nov 2026, at 20:31, Rasmus Villemoes via openembedded-core <rasmus.villemoes=prevas.dk@lists.openembedded.org> wrote:
>>
>> We're dealing with the file as bytes, so we cannot use
>> regexp matching, but splitting on the homedir sequence and checking
>> the first byte of each following part for being non-alphanumeric works
>> just as well.
>
> You can do Python regexes on bytes, and that might be a lot neater/faster than splitting the entire file on the buildpath.
>
You can? I didn't know that. But regardless, I explicitly made sure to
only do this after the existing simple .contains() check, and since this
isn't something that fires very often, I don't think the performance of
that matters too much.
I will look into the re option, though, to see how much better or worse
the code would look. I'm not really convinced that it will perform
better, but if the code is simpler, that's justification enough.
Rasmus
prev parent reply other threads:[~2026-12-02 9:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 20:31 [PATCH] classes/insane: improve HOME checks exceptions more Rasmus Villemoes
2026-11-27 20:46 ` Patchtest results for " patchtest
2026-11-30 14:49 ` [OE-core] " Ross Burton
2026-12-02 9:06 ` Rasmus Villemoes [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=87tskw3vbk.fsf@prevas.dk \
--to=ravi@prevas.dk \
--cc=Ross.Burton@arm.com \
--cc=mathieu.dubois-briand@bootlin.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=peter.kjellerstedt@axis.com \
--cc=richard.purdie@linuxfoundation.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