Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fYztL-0006AY-Cq for pgsql-jdbc@arkaria.postgresql.org; Fri, 29 Jun 2018 20:21:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fYztH-0007yZ-FJ for pgsql-jdbc@arkaria.postgresql.org; Fri, 29 Jun 2018 20:21:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fYztH-0007yQ-4h for pgsql-jdbc@lists.postgresql.org; Fri, 29 Jun 2018 20:21:11 +0000 Received: from m69-169.mailgun.net ([166.78.69.169]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fYztD-000685-BJ for pgsql-jdbc@postgresql.org; Fri, 29 Jun 2018 20:21:09 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=github.com; q=dns/txt; s=mailo; t=1530303665; h=Content-Transfer-Encoding: Content-Type: Mime-Version: Subject: Message-ID: To: Reply-To: From: Date: Sender; bh=4HSj3zncI/AceOtrN305Rs11651HlsSt3CoUvFOqalc=; b=uII6GQoWnyDVwMrS2J6fHq6TzTK1PyH0eKObZ1kBklrLxaM8+EsSmqPqkjmaITkXy+HhgyNK XTR/XomfbXCbsx9JoQNAM13hg/iAi8TvdY9ffdjl/mrUoBcF7kxF79qVg1k3PI5ssMX7kYf2 hBRWvzkzuD2yPAzlCDdBVUlqpJc= X-Mailgun-Sending-Ip: 166.78.69.169 X-Mailgun-Sid: WyI3ZTA2ZSIsICJwZ3NxbC1qZGJjQHBvc3RncmVzcWwub3JnIiwgIjQwZiJd Sender: sitnikov.vladimir=gmail.com@github.com Received: from github.com (Unknown [192.30.252.34]) by mxa.mailgun.org with ESMTP id 5b3694b1.7f9e2f0d9540-smtp-out-n03; Fri, 29 Jun 2018 20:21:05 -0000 (UTC) Date: Fri, 29 Jun 2018 13:21:05 -0700 From: Vladimir Sitnikov Reply-To: Vladimir Sitnikov To: pgsql-jdbc@postgresql.org Message-ID: <5b3694b17b762_74952ac13fe5fc1011230@hookshot-fe-7191cb1.cp1-iad.github.net.mail> Subject: [pgjdbc/pgjdbc] f46c86: perf: avoid BaseQueryKey.toString in CachedQuery.g... Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="--==_mimepart_5b3694b17b221_74952ac13fe5fc1011137"; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ----==_mimepart_5b3694b17b221_74952ac13fe5fc1011137 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: f46c86a1a812ceaf2c95eb8bfc1acdc51b9122df https://github.com/pgjdbc/pgjdbc/commit/f46c86a1a812ceaf2c95eb8bfc1acdc51b9122df Author: Vladimir Sitnikov 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. ----==_mimepart_5b3694b17b221_74952ac13fe5fc1011137--