Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: avoid BaseQueryKey.toString in CachedQuery.getSize #1227

Merged
merged 4 commits into from Jun 29, 2018
Merged
Diff settings

Always

Just for now

docs: correct documentation for CachedQuery.key

  • Loading branch information...
benbenw authored and vlsi committed Jun 27, 2018
commit 3d7507b5e0d284d4db9d014a827f35a8b254eed7
@@ -13,9 +13,7 @@
*/
public class CachedQuery implements CanEstimateSize {
/**
* Cache key. {@link String} or {@code org.postgresql.jdbc.CallableQueryKey}. It is assumed that
* {@code String.valueOf(key)*2} would give reasonable estimate of the number of retained bytes by
* given key (see {@link #getSize}).
* Cache key. {@link String} or {@code org.postgresql.util.CanEstimateSize}.
*/
public final Object key;
public final Query query;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.