Обсуждение: [pgjdbc/pgjdbc] e69e4a: perf: short circuit Oid.BOOL in getBoolean(#745)

Поиск
Список
Период
Сортировка

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

От
Jorge Solorzano
Дата:
  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.