Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp788004rdd; Tue, 9 Jan 2024 22:26:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IEaxy6pbf515JucLN5yGtCQIqpGrMgmmqxB4FOcVX8n9zKqDAFEdOhhqiY18nJWwAfPOVF8 X-Received: by 2002:a05:6a00:6a06:b0:6d9:a9e9:28dd with SMTP id hy6-20020a056a006a0600b006d9a9e928ddmr464301pfb.51.1704867963612; Tue, 09 Jan 2024 22:26:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704867963; cv=none; d=google.com; s=arc-20160816; b=EipevsDiDia8eEllhsrGpHk0XCAUIcW5Omcf4h6g/YwSeTq0NdLHbTqptX8KjoFtjZ gyphHidJcYIFi6Oeuw7n5D0MEzWOUJDPkCg1yozSu41CL09pq7uM28/boWtepy6zSm9m ckZXzpP8xjvWV4dpgJjYX8GQaTDzOHXsYWzKWxUVKMMkR+SLvGNiRUbBkyu755rmz7zj t6WDkvVRbGPwQbme01CNUuZhLG3TiWXTyA2702GplheJhDfgpYQuiJ+9JfFmWTx0LNbr YLRhxdPjXpU65y/pUACdvPPcMHpGZBJgpSbYqd8vk8TBZkhkQWnIB7fvTKTzPAKOqKxf Rxlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=L/0KLFTYKE/o50YQVweQ8VAXCNVuYZ8ilVezEBjopMY=; fh=rHM72ARpak0OSbwEF6xRgcAemRZf8hboogD3nmuAyrA=; b=BBobMW0tTmxu8+ygepspMFJx9bXxGbGG7Xoaj/Lcu6z7s5uHQY1XPrw7Vo350voKA+ f9lvcOFauSKDlNgdHCrFsyKc21VyeSSEMNAn66c0mDYQn0fwuvAah0fy2UOB5kUv30LA Hf90WotL/wa1OwJXrzJppJ7kah9lQS+Vgl0n29FfupHwxohQIWa40Z9h/w47Va6clWe2 AoUBekX4hxxTUgJ8+KkyfBZFP1e0wEGzV8VAFyQRvS7lRCxPAcskE5ZktZ7GhJ4TFy/i k3CUBFZe/lQZ3e7222Io1oFGJ3JFyJlkg6/4HWswrkZ8ygI9HXiyPa+GHfuRLnse7YeU pT/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=I9MEITYa; spf=pass (google.com: domain of linux-kernel+bounces-21741-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21741-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h14-20020a63c00e000000b005ce004c1886si3023628pgg.468.2024.01.09.22.26.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 22:26:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21741-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=I9MEITYa; spf=pass (google.com: domain of linux-kernel+bounces-21741-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21741-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 883B12863D6 for ; Wed, 10 Jan 2024 06:14:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E2E332C76; Wed, 10 Jan 2024 06:14:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="I9MEITYa" 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 9C91C2E623 for ; Wed, 10 Jan 2024 06:14:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD08AC433C7; Wed, 10 Jan 2024 06:14:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1704867289; bh=ubcvQfp0UsJ8CksAdInXVosl+AP1MYyH7VK3oTymF4U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=I9MEITYad+YTclrI5Z5Py70FcaVZsU4ak8qh2Zuc4jHUxOBhdfb9Hw+XR1Paowne8 JRiXTvRbGxxVpvNxfaeZE2kN1frRUqOp0xQp0Ma7XUq3y8vJg7Vr2HDbMwCA/pKPfq gn/bSWBRx6KtYxhUYXo39uZpqpIzVwQR7JiV8vpw= Date: Tue, 9 Jan 2024 22:14:47 -0800 From: Andrew Morton To: Kuan-Wei Chiu Cc: irogers@google.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/2] lib min_heap: Min heap optimizations Message-Id: <20240109221447.3d5e8878b0d6424d26666be5@linux-foundation.org> In-Reply-To: <20240103205259.2108410-1-visitorckw@gmail.com> References: <20240103205259.2108410-1-visitorckw@gmail.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 4 Jan 2024 04:52:57 +0800 Kuan-Wei Chiu wrote: > Hello, > > The purpose of this patch series is to enhance the existing min heap > implementation. The optimization focuses on both the heap construction > process and the number of comparisons made during the heapify > operation. > The patches look nice, but the only user of this code is kernel/events/core.c and the developers of that code aren't cc'ed, so please rectify that. Has Ian commented on these changes? The amount of inlining in min_heap.h is amazing. Was there some special reason for this? It makes min_heap somewhat unsuitable for more general use.