Thread: [pgjdbc/pgjdbc] f2a24d: perf: improve performance of bytea string decoding...

[pgjdbc/pgjdbc] f2a24d: perf: improve performance of bytea string decoding...

From
Brett Okken
Date:
  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: f2a24d37363b59279290ef16767047bf65b3694c
      https://github.com/pgjdbc/pgjdbc/commit/f2a24d37363b59279290ef16767047bf65b3694c
  Author: Brett Okken <brett.okken.os@gmail.com>
  Date:   2021-10-25 (Mon, 25 Oct 2021)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/util/PGbytea.java
    M pgjdbc/src/test/java/org/postgresql/jdbc/ByteaArraysTest.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/Jdbc2TestSuite.java
    A pgjdbc/src/test/java/org/postgresql/util/PGbyteaTest.java

  Log Message:
  -----------
  perf: improve performance of bytea string decoding (#2320)

* perf: improve performance of bytea string decoding

improve the parsing of bytea hex encoded string by making a lookup table
for each of the valid ascii code points to the 4 bit numeric value