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

From: Brett Okken <noreply(at)github(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] f2a24d: perf: improve performance of bytea string decoding...
Date: 2021-10-25 16:48:14
Message-ID: pgjdbc/pgjdbc/push/refs/heads/master/c9be5c-f2a24d@github.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: f2a24d37363b59279290ef16767047bf65b3694c
https://github.com/pgjdbc/pgjdbc/commit/f2a24d37363b59279290ef16767047bf65b3694c
Author: Brett Okken <brett(dot)okken(dot)os(at)gmail(dot)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

Browse pgsql-jdbc by date

  From Date Subject
Next Message Brett Okken 2021-10-25 18:10:04 [pgjdbc/pgjdbc] a024cd: feat: intern/canonicalize common strings (#2234)
Previous Message Dave Cramer 2021-10-25 10:20:47 [pgjdbc/pgjdbc] c9be5c: remove check for negative pid in cancel request. A...