[pgjdbc/pgjdbc] f46c86: perf: avoid BaseQueryKey.toString inCachedQuery.g... - Mailing list pgsql-jdbc

From Vladimir Sitnikov
Subject [pgjdbc/pgjdbc] f46c86: perf: avoid BaseQueryKey.toString inCachedQuery.g...
Date
Msg-id 5b3694b17b762_74952ac13fe5fc1011230@hookshot-fe-7191cb1.cp1-iad.github.net.mail
Whole thread Raw
List 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.vladimir@gmail.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.

pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: insert function runs forever if connection is lost, keeping thetable locked
Next
From: Vladimir Sitnikov
Date:
Subject: [pgjdbc/pgjdbc] 177f63: perf: improve performance of replacing JDBC{...} ...