From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A11DC186284; Fri, 30 Jan 2026 00:10:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769731835; cv=none; b=e62NeROsbrqZ/pazcxEyE6m0b54PN3O4pXLnFfh17I3VacBO+FQ5fbi7afznG5JUHkLKrt5yuaEn7ccGIbtnzVBw0UMvYZjdgmEFuZRYwECzuZRht+fhPXkyK2/iZo7HqIBbEg5eoSHEJi4xTH9vLHj5YVzrLujnkvjdoXXraHQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769731835; c=relaxed/simple; bh=LoS+w0ZJyUAygbEUyB/TLXVll6leIC8mDvQ4Bj6W2JQ=; h=From:To:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=pICU4r0xO1TO0wu2e61fgCCu3ICtC32lG9GA6INCJgoY8nfvwtZH09Z/HojI0XWDsKq7XZGibA84ZcFLUvkDZF9jvnPKsxn5x+AIjh2lzAIN2NFUp8G/rt1t0u4G8KskUJhPdPWjbX+UlRMe491qsNo+/UwDfUw0B0MfWdqLI/Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TMuVh7gw; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TMuVh7gw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C59DC4CEF7; Fri, 30 Jan 2026 00:10:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769731835; bh=LoS+w0ZJyUAygbEUyB/TLXVll6leIC8mDvQ4Bj6W2JQ=; h=From:To:In-Reply-To:References:Subject:Date:From; b=TMuVh7gw6JXexGrllsr9dTjSECTSFMDaN/8XLeO+zJV3DqNI7V5UomSyAxNHFHD/r wRzzJPUdYml3axmoaiqr5YXs/tzLQohgWgid9+G/IXHHGfk3lPtbV7VgXvvaCPI1xZ lRU3q1oRqaNF6goHpZpqppTaApsy2xmrn8amXSwsF+kKtAhU/Ukfx013U4oDL8FD8f i5/nGMcaChg16Kkbi6npexFVqMmRrLwcVYAOoY7uVOqzm9r5s/wRKbIDKe171vu76B P0wEu8qTdtQrMJvXn+mdSSkWlEpYcJnTSMPXkF5hNkXB4C4jKRxIRrzS0pbSvUlPFt 6N/382UIPrCHA== From: Nathan Chancellor To: Nathan Chancellor , Nicolas Schier , Anders Roxell , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Mikko Rapeli In-Reply-To: <20260122105751.2186609-1-mikko.rapeli@linaro.org> References: <20260122105751.2186609-1-mikko.rapeli@linaro.org> Subject: Re: [PATCH v3 1/3] scripts: kconfig: merge_config.sh: refactor from shell/sed/grep to awk Message-Id: <176973183385.175491.5659819632977597738.b4-ty@kernel.org> Date: Thu, 29 Jan 2026 17:10:33 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.15-dev On Thu, 22 Jan 2026 12:57:49 +0200, Mikko Rapeli wrote: > merge_config.sh shell/sed/grep loop scales poorly and is slow. > With Yocto genericarm64 kernel and around 190 config fragments > the script takes more than 20 minutes to run on a fast build machine. > Re-implementation with awk does the same job in 10 seconds. > Using awk since it is likely available in the build environments > and using perl, python etc would introduce more complex runtime > dependencies. awk is good enough and lot better than shell/sed/grep. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux.git kbuild-next Thanks! [1/3] scripts: kconfig: merge_config.sh: refactor from shell/sed/grep to awk (no commit info) [2/3] scripts: kconfig: merge_config.sh: use awk in checks too (no commit info) [3/3] scripts: kconfig: merge_config.sh: warn on duplicate input files (no commit info) Please look out for regression or issue reports or other follow up comments, as they may result in the patch/series getting dropped or reverted. Patches applied to an "unstable" branch are accepted pending wider testing in -next and any post-commit review; they will generally be moved to the main branch in a week if no issues are found. Best regards, -- Nathan Chancellor