Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck.
От
Andres Freund
Тема
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck.
Дата
Msg-id
20170928225636.5zpkcgorw5odfb5s@alap3.anarazel.de
Ответ на
Список
Дерево обсуждения
[HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Andres Freund <andres@anarazel.de>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. tushar <tushar.ahuja@enterprisedb.com>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. tushar <tushar.ahuja@enterprisedb.com>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Jeevan Ladhe <jeevan.ladhe@enterprisedb.com>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Andres Freund <andres@anarazel.de>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Andres Freund <andres@anarazel.de>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Andres Freund <andres@anarazel.de>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Andres Freund <andres@anarazel.de>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Andres Freund <andres@anarazel.de>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Andres Freund <andres@anarazel.de>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Andres Freund <andres@anarazel.de>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Andres Freund <andres@anarazel.de>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Andres Freund <andres@anarazel.de>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Andres Freund <andres@anarazel.de>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Andres Freund <andres@anarazel.de>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Andres Freund <andres@anarazel.de>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Binary search in fmgr_isbuiltin() is a bottleneck. Andres Freund <andres@anarazel.de>
On 2017-09-28 18:52:28 -0400, Tom Lane wrote: > Andres Freund writes: > > I might be worse than you... But anyway, here's a patch doing > > so. Looking at profiles, it turned out that having the integer limits as > > extern variables in a different TU isn't a great idea. > > Uh, what? Access to fmgr_nbuiltins shouldn't be part of any critical path > anymore after this change. Indeed. But the size of the the oid -> fmgr_builtins index array is relevant now. We could of course just make that dependent on FirstBootstrapObjectId, but that'd waste some memory. > > So I moved what > > used to be fmgrtab.c to fmgrtab.h, and included it directly in fmgr.c. > > I'm kind of -0.5 on that. I believe part of the argument for having > things set up as they were was to allow external code to access the > fmgr_builtins table (as my speed-test hack earlier today did). You could still do that, you'd just end up with a second copy. Doesn't seem bad for such an uncommon case. Greetings, Andres Freund -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Alexander Korotkov
Дата: