[pgjdbc/pgjdbc] e69e4a: perf: short circuit Oid.BOOL in getBoolean (#745)

From: Jorge Solorzano <jorsol(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] e69e4a: perf: short circuit Oid.BOOL in getBoolean (#745)
Date: 2017-02-12 15:09:53
Message-ID: 58a07ac151a2e_1cf33fce5090bc2c1140fc@hookshot-fe1-cp1-prd.iad.github.net.mail
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: e69e4a1d5502319bc810e0e4529611ba52ea386c
https://github.com/pgjdbc/pgjdbc/commit/e69e4a1d5502319bc810e0e4529611ba52ea386c
Author: Jorge Solorzano <jorsol(at)gmail(dot)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.

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vladimir Sitnikov 2017-02-12 17:55:38 [pgjdbc/pgjdbc] 989b4d: fix: revert ExpressionProperties to Properties in ...
Previous Message Jorge Solorzano 2017-02-12 15:08:07 [pgjdbc/pgjdbc] 43e650: feat: use java.util.logging (#722)