Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccy3L-0003iU-Ep for pgsql-jdbc@arkaria.postgresql.org; Sun, 12 Feb 2017 17:35:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ccy3L-0002q1-1g for pgsql-jdbc@arkaria.postgresql.org; Sun, 12 Feb 2017 17:35:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ccvmr-0000rq-9a for pgsql-jdbc@postgresql.org; Sun, 12 Feb 2017 15:10:01 +0000 Received: from m69-170.mailgun.net ([166.78.69.170]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ccvmn-00016D-5i for pgsql-jdbc@postgresql.org; Sun, 12 Feb 2017 15:10:00 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=github.com; q=dns/txt; s=mailo; t=1486912193; h=Content-Transfer-Encoding: Content-Type: Mime-Version: Subject: Message-ID: To: Reply-To: From: Date: Sender; bh=pCyZjIL47x5mw5B5KKOAuULH+XHKHTqoYrq03oyk9qY=; b=tyDetHN70knQOfJwgRuLfVdXrsCZ6yVH143BF3pDz+5Oy+i14bPbik8KVqxcap2KyxkMzego CD8ths5oAD0nUwZIToaZBCn9WCX85ZUXbmxFgjZw/6vPAPsrJhGl2vRAGOMe1gjtwcn12SRd P5eMsXEuIu0286qLMse03lOaog8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=github.com; s=mailo; q=dns; h=Sender: Date: From: Reply-To: To: Message-ID: Subject: Mime-Version: Content-Type: Content-Transfer-Encoding; b=aTwjRLz30MwKxkO7KKMWoG4MsJzv9HBdmuuoJ909NVU8lJ3H1QM3E1wc1O5qDRg/1x9LJM m6DA7aQNb6F6+we+kcJjyOvljr6ERHlCeSpA7SMlOI1aH/ONBst0ne20Ph7LEOklHIDgFWM8 3+eIZtaJUz7sevaq5j/vj2c7YfKKo= X-Mailgun-Sending-Ip: 166.78.69.170 X-Mailgun-Sid: WyI3ZTA2ZSIsICJwZ3NxbC1qZGJjQHBvc3RncmVzcWwub3JnIiwgIjQwZiJd Received: from github.com (Unknown [192.30.252.42]) by mxa.mailgun.org with ESMTP id 58a07ac1.7fa154225f60-smtp-out-n01; Sun, 12 Feb 2017 15:09:53 -0000 (UTC) Date: Sun, 12 Feb 2017 07:09:53 -0800 From: Jorge Solorzano Reply-To: Jorge Solorzano To: pgsql-jdbc@postgresql.org Message-ID: <58a07ac151a2e_1cf33fce5090bc2c1140fc@hookshot-fe1-cp1-prd.iad.github.net.mail> Subject: [pgjdbc/pgjdbc] e69e4a: perf: short circuit Oid.BOOL in getBoolean (#745) Mime-Version: 1.0 X-Pg-Spam-Score: -0.4 (/) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: e69e4a1d5502319bc810e0e4529611ba52ea386c https://github.com/pgjdbc/pgjdbc/commit/e69e4a1d5502319bc810e0e4529611ba52ea386c Author: Jorge Solorzano 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. -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc