[pgjdbc/pgjdbc] f46c86: perf: avoid BaseQueryKey.toString in CachedQuery.g...

From: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] f46c86: perf: avoid BaseQueryKey.toString in CachedQuery.g...
Date: 2018-06-29 20:21:05
Message-ID: 5b3694b17b762_74952ac13fe5fc1011230@hookshot-fe-7191cb1.cp1-iad.github.net.mail
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: f46c86a1a812ceaf2c95eb8bfc1acdc51b9122df
https://github.com/pgjdbc/pgjdbc/commit/f46c86a1a812ceaf2c95eb8bfc1acdc51b9122df
Author: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
Date: 2018-06-29 (Fri, 29 Jun 2018)

Changed paths:
M pgjdbc/src/main/java/org/postgresql/core/BaseQueryKey.java
M pgjdbc/src/main/java/org/postgresql/core/CachedQuery.java
M pgjdbc/src/main/java/org/postgresql/core/QueryWithReturningColumnsKey.java

Log Message:
-----------
perf: avoid BaseQueryKey.toString in CachedQuery.getSize (#1227)

LruCache uses .getSize to limit the size of the cache, so this method
should refrain from doing memory allocations.

closes #1226

**NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

Functionality will be removed from GitHub.com on January 31st, 2019.

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vladimir Sitnikov 2018-06-29 20:25:19 [pgjdbc/pgjdbc] 177f63: perf: improve performance of replacing JDBC {...} ...
Previous Message Dave Cramer 2018-06-29 16:40:29 Re: insert function runs forever if connection is lost, keeping the table locked