Re: SLRU optimization - configurable buffer pool and partitioning the SLRU lock

From: "Andrey M(dot) Borodin" <x4mmm(at)yandex-team(dot)ru>
To: tender wang <tndrwang(at)gmail(dot)com>
Cc: Amul Sul <sulamul(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: SLRU optimization - configurable buffer pool and partitioning the SLRU lock
Date: 2023-12-14 11:56:50
Message-ID: AB975ABB-1EFA-4113-B6DF-89BB4D949C4B@yandex-team.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 14 Dec 2023, at 16:32, tender wang <tndrwang(at)gmail(dot)com> wrote:
>
> enable -O2, only one instruction:
> xor eax, eax

This is not fast code. This is how friendly C compiler suggests you that mask must be 127, not 128.

Best regards, Andrey Borodin.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Bapat 2023-12-14 12:04:07 Re: Memory consumed by paths during partitionwise join planning
Previous Message Emre Hasegeli 2023-12-14 11:35:17 Re: btree_gist into core?