Re: Parser Cruft in gram.y

Поиск
Список
Период
Сортировка
Искать
От
Greg Stark
Тема
Re: Parser Cruft in gram.y
Дата
Msg-id
CAM-w4HM5Pcka3tDTtXACUXNz5qYxAnbbMhq8Fgf1ttR2=yx3og@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Re: Parser Cruft in gram.y "Kevin Grittner" <kgrittn@mail.com>
Re: Parser Cruft in gram.y Tom Lane <tgl@sss.pgh.pa.us>
Re: Parser Cruft in gram.y Robert Haas <robertmhaas@gmail.com>
Re: Parser Cruft in gram.y Tom Lane <tgl@sss.pgh.pa.us>
Re: Parser Cruft in gram.y Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Re: Parser Cruft in gram.y David Fetter <david@fetter.org>
Re: Parser Cruft in gram.y Robert Haas <robertmhaas@gmail.com>
Re: Parser Cruft in gram.y Peter Eisentraut <peter_e@gmx.net>
Re: Parser Cruft in gram.y Robert Haas <robertmhaas@gmail.com>
Re: Parser Cruft in gram.y Greg Stark <stark@mit.edu>
Re: Parser Cruft in gram.y Tom Lane <tgl@sss.pgh.pa.us>
Re: Parser Cruft in gram.y Robert Haas <robertmhaas@gmail.com>
Re: Parser Cruft in gram.y Greg Stark <stark@mit.edu>
Re: Parser Cruft in gram.y Andres Freund <andres@2ndquadrant.com>
Re: Parser Cruft in gram.y Peter Eisentraut <peter_e@gmx.net>
Re: Parser Cruft in gram.y "McDevitt, Charles" <Charles.McDevitt@emc.com>
Re: Parser Cruft in gram.y Andres Freund <andres@2ndquadrant.com>
Re: Parser Cruft in gram.y Tom Lane <tgl@sss.pgh.pa.us>
Re: Parser Cruft in gram.y "McDevitt, Charles" <Charles.McDevitt@emc.com>
Re: Parser Cruft in gram.y Simon Riggs <simon@2ndQuadrant.com>
Re: Parser Cruft in gram.y Robert Haas <robertmhaas@gmail.com>
Re: Parser Cruft in gram.y Andres Freund <andres@2ndquadrant.com>
Re: Parser Cruft in gram.y Andres Freund <andres@2ndquadrant.com>
Re: Parser Cruft in gram.y Andres Freund <andres@2ndquadrant.com>
Re: Parser Cruft in gram.y Andres Freund <andres@2ndquadrant.com>
On Thu, Dec 20, 2012 at 3:18 AM, Tom Lane  wrote:
> Greg Stark  writes:
>> But I'm not entirely convinced any of this is actually useful. Just
>> becuase the transition table is large doesn't mean it's inefficient.
>
> That's a fair point.  However, I've often noticed base_yyparse() showing
> up rather high on profiles --- higher than seemed plausible at the time,
> given that its state-machine implementation is pretty tight.  Now I'm
> wondering whether that isn't coming from cache stalls from trying to
> touch all the requisite parts of the transition table.

For what it's worth the bloat isn't in the parser transition table at all:
516280 yy_transition
147208 yytable
147208 yycheck
146975 base_yyparse
17468 yypact
9571 core_yylex
8734 yystos
8734 yydefact

Unless I'm confused yy_transition is in fact the *lexer* transition
table. I'm not sure how to reconcile that with the profiling results
showing the cache misses in base_yyparse() though.


-- 
greg


В списке pgsql-hackers по дате отправления
От: Robert Haas
Дата:
От: Tom Lane
Дата:
FAQ