Re: Reduce memory overheads for storing a Memoize tuple

From: cca5507 <cca5507(at)qq(dot)com>
To: David Rowley <dgrowleyml(at)gmail(dot)com>, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Cc: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Reduce memory overheads for storing a Memoize tuple
Date: 2026-11-16 08:25:16
Message-ID: tencent_388FF7A0C40E21B4A970AF962A6558A61D05@qq.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I find that we can save 16 more bytes per Memoize key by storing the lru node along with
the Memoize key.

Patch attached.

--
Regards,
ChangAo Chen

Attachment Content-Type Size
v1-0001-Reduce-memory-overheads-for-storing-a-Memoize-key.patch application/octet-stream 9.1 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Previous Message Zhijie Hou 2026-11-16 08:09:44 Re: Assertion failure in update_local_synced_slot(), slotsync.c:364