Hi,
> On Dec 2, 2026, at 18:04, John Naylor <johncnaylorls(at)gmail(dot)com> wrote:
>
> While reviewing bounded-sort improvements, I found a separate issue:
> make_bounded_heap() doesn't free the root tuple when replaced (and
> hasn't for 10 years), which shows up as increased memory reporting,
> especially with inputs in reverse order.
Nice catch! The fix looks good to me.
--
Best regards,
Chengpeng Yan