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

Поиск
Список
Период
Сортировка
От Jorge Solorzano
Тема [pgjdbc/pgjdbc] e69e4a: perf: short circuit Oid.BOOL in getBoolean(#745)
Дата
Msg-id 58a07ac151a2e_1cf33fce5090bc2c1140fc@hookshot-fe1-cp1-prd.iad.github.net.mail
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Jorge Solorzano
Дата:
Сообщение: [pgjdbc/pgjdbc] 43e650: feat: use java.util.logging (#722)
Следующее
От: Vladimir Sitnikov
Дата:
Сообщение: [pgjdbc/pgjdbc] 989b4d: fix: revert ExpressionProperties toProperties in ...