pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jorge Solorzano <jorsol@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: [pgjdbc/pgjdbc] e69e4a: perf: short circuit Oid.BOOL in getBoolean (#745)
Date: Sun, 12 Feb 2017 07:09:53 -0800
Message-ID: <58a07ac151a2e_1cf33fce5090bc2c1140fc@hookshot-fe1-cp1-prd.iad.github.net.mail> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: e69e4a1d5502319bc810e0e4529611ba52ea386c
      https://github.com/pgjdbc/pgjdbc/commit/e69e4a1d5502319bc810e0e4529611ba52ea386c
  Author: Jorge Solorzano <jorsol@gmail.com>
  Date:   2017-02-12 (Sun, 12 Feb 2017)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java
    M ubenchmark/pom.xml
    A ubenchmark/src/main/java/org/postgresql/benchmark/statement/ProcessBoolean.java
    M ubenchmark/src/main/java/org/postgresql/benchmark/statement/ProcessResultSet.java

  Log Message:
  -----------
  perf: short circuit Oid.BOOL in getBoolean (#745)

The BE sends "t" of "f" for Oid.BOOL so there is no need to fall in getString
which execute again checkResultSet(), decode the byte and trim the returned String.

All of this can be avoided and get a performance benefit.



-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



Message-ID: <58a07ac151a2e_1cf33fce5090bc2c1140fc@hookshot-fe1-cp1-prd.iad.github.net.mail>
Permalink:  ../58a07ac151a2e_1cf33fce5090bc2c1140fc@hookshot-fe1-cp1-prd.iad.github.net.mail/
Also on:    postgresql.org/message-id/58a07ac151a2e_1cf33fce5090bc2c1140fc@hookshot-fe1-cp1-prd.iad.github.net.mail

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: jorsol@gmail.com
  Subject: Re: [pgjdbc/pgjdbc] e69e4a: perf: short circuit Oid.BOOL in getBoolean (#745)
  In-Reply-To: <58a07ac151a2e_1cf33fce5090bc2c1140fc@hookshot-fe1-cp1-prd.iad.github.net.mail>
  References: <58a07ac151a2e_1cf33fce5090bc2c1140fc@hookshot-fe1-cp1-prd.iad.github.net.mail>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox