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 16C223D72 for ; Mon, 13 Nov 2023 04:50:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AQ+5mPju" Received: by smtp.kernel.org (Postfix) with ESMTPS id B7510C433C9; Mon, 13 Nov 2023 04:50:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699851025; bh=bUf+/gTdXd1ZzU15zgL5XesRLAJnbVGMdqnzNEOPshw=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=AQ+5mPjuMhg0ZLwgpbb6fT22wkl/31mASTn1eZ05WuT/rgSvjijpRaVwSpsr+vnqI GjVGpXdpHfR1ng6SOReSjIcBJZ/2fZ4kMSh59OvllUSY+xzQ6VlZ32EG7WvfE7H2Zp Y0F2plGZe6Xej05tSdIFqN3IYG4eL9xRkRN4+9lr3+iYPf1+d9z8clr4Cq28aQC9kD NBj235zX2RRbhEf8xZY9SeMvoKBY+6xyYgjihxeQb5U72x6P31dxBrYICwWTsqMdRo ZcNonSgVD9scMcudl0W48unm/FNCJYsEFgiM0jDuIc4xBR708FHmGviH68aSZQ/JaV P+3A+ZUzWRXFg== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 98FFFC04DD9; Mon, 13 Nov 2023 04:50:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: chrome-platform@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v2] platform/chrome: sensorhub: Implement quickselect for median calculation From: patchwork-bot+chrome-platform@kernel.org Message-Id: <169985102562.12923.10861962849443008728.git-patchwork-notify@kernel.org> Date: Mon, 13 Nov 2023 04:50:25 +0000 References: <20231110165314.1559285-1-visitorckw@gmail.com> In-Reply-To: <20231110165314.1559285-1-visitorckw@gmail.com> To: Kuan-Wei Chiu Cc: bleung@chromium.org, tzungbi@kernel.org, groeck@chromium.org, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org Hello: This patch was applied to chrome-platform/linux.git (for-kernelci) by Tzung-Bi Shih : On Sat, 11 Nov 2023 00:53:14 +0800 you wrote: > The cros_ec_sensor_ring_median function currently uses an inefficient > sorting algorithm (> O(n)) to find the median of an array. This patch > replaces the sorting approach with the quickselect algorithm, which > achieves an average time complexity of O(n). > > The algorithm employs the median-of-three rule to select the pivot, > mitigating worst-case scenarios and reducing the expected number of > necessary comparisons. This strategy enhances the algorithm's > efficiency and ensures a more balanced partitioning. > > [...] Here is the summary with links: - [v2] platform/chrome: sensorhub: Implement quickselect for median calculation https://git.kernel.org/chrome-platform/c/d131f1f3b459 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html