Re: Query is over 2x slower with jit=on

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org,Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Andreas Joseph Krogh <andreas(at)visena(dot)com>,PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Query is over 2x slower with jit=on
Date: 2018-04-18 19:29:22
Message-ID: 8CE6BD06-CF1C-4D3C-B301-A2379269D5D2@anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On April 18, 2018 12:16:35 PM PDT, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>On Wed, Apr 18, 2018 at 11:50 AM, Andres Freund <andres(at)anarazel(dot)de>
>wrote:
>> JIT has cost, and sometimes it's not beneficial. Here our heuristics
>> when to JIT appear to be a bit off. In the parallel world it's worse
>> because the JITing is duplicated for parallel workers atm.
>
>It seems like you're describing it as if the JIT just didn't produce
>gains sufficient to make up for the cost of doing it, but that's not
>really the issue here AFAICS. Here the JIT actually made code that
>run slower than the un-JIT-ted code. That seems like a different sort
>of problem.

Not convinced that that is true - the issue is more likely that JIT work in workers is counted as execute time... Gotta add that somehow, not sure what the best way would be.
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Arnold 2018-04-18 19:32:26 Re: Proposal: Adding json logging
Previous Message Robert Haas 2018-04-18 19:16:35 Re: Query is over 2x slower with jit=on