[pgjdbc/pgjdbc] e69e4a: perf: short circuit Oid.BOOL in getBoolean(#745) - Mailing list pgsql-jdbc

From Jorge Solorzano
Subject [pgjdbc/pgjdbc] e69e4a: perf: short circuit Oid.BOOL in getBoolean(#745)
Date
Msg-id 58a07ac151a2e_1cf33fce5090bc2c1140fc@hookshot-fe1-cp1-prd.iad.github.net.mail
Whole thread Raw
List 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@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.



pgsql-jdbc by date:

Previous
From: Jorge Solorzano
Date:
Subject: [pgjdbc/pgjdbc] 43e650: feat: use java.util.logging (#722)
Next
From: Vladimir Sitnikov
Date:
Subject: [pgjdbc/pgjdbc] 989b4d: fix: revert ExpressionProperties toProperties in ...