From: Petr Vorel <pvorel@suse.cz>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] lib: tst_has_slow_kconfig() cache the result
Date: Mon, 20 Jan 2025 14:02:17 +0100 [thread overview]
Message-ID: <20250120130217.GA802692@pevik> (raw)
In-Reply-To: <20250120120606.20145-1-chrubis@suse.cz>
Hi Cyril, Li,
> The result from the tst_has_slow_kconfig() is not going to change so we
> can cache the result as there are several cases where the function may
> end up being called. For instance any test that calls SAFE_CLONE() will
> call the function repeatedly. This change makes the tests slightly
> faster and also avoids repeated messages in the test output.
Thanks, elegant solution, thanks!
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2025-01-20 13:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-20 12:06 [LTP] [PATCH] lib: tst_has_slow_kconfig() cache the result Cyril Hrubis
2025-01-20 12:39 ` Li Wang
2025-01-20 13:02 ` Petr Vorel [this message]
2025-01-20 13:12 ` Cyril Hrubis
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=20250120130217.GA802692@pevik \
--to=pvorel@suse.cz \
--cc=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/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