Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mf392-0008TP-TT for pgsql-jdbc@arkaria.postgresql.org; Mon, 25 Oct 2021 16:48:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mf391-0005Sz-NY for pgsql-jdbc@arkaria.postgresql.org; Mon, 25 Oct 2021 16:48:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mf391-0005Sp-FT for pgsql-jdbc@lists.postgresql.org; Mon, 25 Oct 2021 16:48:19 +0000 Received: from out-21.smtp.github.com ([192.30.252.204] helo=smtp.github.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mf38y-0003O4-B6 for pgsql-jdbc@lists.postgresql.org; Mon, 25 Oct 2021 16:48:18 +0000 Received: from github.com (hubbernetes-node-01abb34.ac4-iad.github.net [10.52.207.58]) by smtp.github.com (Postfix) with ESMTPA id 7BBE5522E39 for ; Mon, 25 Oct 2021 09:48:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1635180494; bh=ob169j7QEM19w8eG6237OsicIc/kW7CN9XGkl6wSKuA=; h=Date:From:To:Subject:From; b=1b86pqOULzxqxTrMBMuvObMRKLOhNQy2MzE21DXGabNi5fepHyrL6/yEYMBgwIZu+ 3lcW1Vc//AlNXUUfh61egq+GrZXQz1QTvDlc97FNUh6Oe4xDbJCt0+z3q62mgcK1kP KM1WhqfhZWqEk5LxhOx2AAtDrXoGwvJgBVMYM7kU= Date: Mon, 25 Oct 2021 09:48:14 -0700 From: Brett Okken To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] f2a24d: perf: improve performance of bytea string decoding... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: f2a24d37363b59279290ef16767047bf65b3694c https://github.com/pgjdbc/pgjdbc/commit/f2a24d37363b59279290ef16767047bf65b3694c Author: Brett Okken 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