From: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: [pgjdbc/pgjdbc] f46c86: perf: avoid BaseQueryKey.toString in CachedQuery.g...
Date: Fri, 29 Jun 2018 13:21:05 -0700
Message-ID: <5b3694b17b762_74952ac13fe5fc1011230@hookshot-fe-7191cb1.cp1-iad.github.net.mail> (raw)
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: sitnikov.vladimir@gmail.com
Subject: Re: [pgjdbc/pgjdbc] f46c86: perf: avoid BaseQueryKey.toString in CachedQuery.g...
In-Reply-To: <5b3694b17b762_74952ac13fe5fc1011230@hookshot-fe-7191cb1.cp1-iad.github.net.mail>
References: <5b3694b17b762_74952ac13fe5fc1011230@hookshot-fe-7191cb1.cp1-iad.github.net.mail>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox