[RESEND PATCH v2 0/2] lib min_heap: Min heap optimizations

From: Kuan-Wei Chiu
Date: Wed Jan 10 2024 - 03:12:37 EST


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.

Thanks,
Kuan-Wei Chiu

---
Changes in RESEND:
- CC the mailing list

Changes in RESEND:
- CC performance events subsystem's maintainers and reviewers.
Link: https://lkml.kernel.org/20240103205259.2108410-1-visitorckw@xxxxxxxxx

Changes in v2:
- Use a more consistent title: "min_heap:" -> "lib min_heap:"
- Refine commit messages
Link: https://lkml.kernel.org/20231220083224.3712113-1-visitorckw@xxxxxxxxx

Kuan-Wei Chiu (2):
lib min_heap: Optimize number of calls to min_heapify()
lib min_heap: Optimize number of comparisons in min_heapify()

include/linux/min_heap.h | 44 +++++++++++++++++++++-------------------
1 file changed, 23 insertions(+), 21 deletions(-)

--
2.25.1