From: | Zhihong Yu <zyu(at)yugabyte(dot)com> |
---|---|
To: | Denis Smirnov <sd(at)arenadata(dot)io> |
Cc: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Andrey Borodin <x4mmm(at)yandex-team(dot)ru>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: PoC Refactor AM analyse API |
Date: | 2021-02-19 16:22:05 |
Message-ID: | CALNJ-vThfHqQCkGVvipUsO_ysSxBLTNWt6LBRK=NdscVK6tXOg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Denis:
Thanks for considering my suggestion.
For #1, I didn't take your example into account. Thanks for pointing that
out.
Cheers
On Thu, Feb 18, 2021 at 11:59 PM Denis Smirnov <sd(at)arenadata(dot)io> wrote:
> Hello, Zhihong.
>
> Thanks for your comments.
>
> 1. I am afraid that an equivalence of "floor(val + 0.5)" to "cell(val)" is
> incorrect: "floor(2.1 + 0.5)" returns 2 while "cell(2.1)" returns 3. We
> can’t use such replacement, as you have suggested.
>
> 2. >> For compare_rows(), it seems the computation of oa and ob can be
> delayed to when ba == bb (after the first two if statements).
> I have checked some examples of ASM code generated by different compilers
> with -O2/O3 flags on https://gcc.godbolt.org and didn’t see any big
> benefit in result CPU instructions. You can check yourself an attached
> example below.
>
>
>
> Best regards,
> Denis Smirnov | Developer
> sd(at)arenadata(dot)io
> Arenadata | Godovikova 9-17, Moscow 129085 Russia
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Damir Simunic | 2021-02-19 17:18:48 | Re: Extensibility of the PostgreSQL wire protocol |
Previous Message | Dilip Kumar | 2021-02-19 16:21:57 | Re: [HACKERS] Custom compression methods |