Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0C169200D49 for ; Fri, 10 Nov 2017 07:22:37 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0AA50160C02; Fri, 10 Nov 2017 06:22:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4DC5A160BEF for ; Fri, 10 Nov 2017 07:22:36 +0100 (CET) Received: (qmail 82383 invoked by uid 500); 10 Nov 2017 06:22:35 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 82367 invoked by uid 99); 10 Nov 2017 06:22:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2017 06:22:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id E458318339C for ; Fri, 10 Nov 2017 06:22:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.362 X-Spam-Level: ** X-Spam-Status: No, score=2.362 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id W_jAdrAcTQqm for ; Fri, 10 Nov 2017 06:22:32 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 0A1E65FDD4 for ; Fri, 10 Nov 2017 06:22:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id vAA6MUUh019126; Fri, 10 Nov 2017 06:22:30 GMT Message-Id: <201711100622.vAA6MUUh019126@ip-10-146-233-104.ec2.internal> X-Gerrit-PatchSet: 16 Date: Fri, 10 Nov 2017 06:22:29 +0000 From: "Pranay Singh (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Joe McDonnell , Bikramjeet Vig , Tim Armstrong X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5522=3AUse_tracked_memory_for_DictDecoder_and_DictEncoder=0A?= X-Gerrit-Change-Id: I02a3b54f6c107d19b62ad9e1c49df94175964299 X-Gerrit-Change-Number: 8034 X-Gerrit-ChangeURL: X-Gerrit-Commit: 3b8c2020a7ef3d7b8b9d65b09c3697398334d2eb In-Reply-To: References: X-Gerrit-Comment-Date: Fri, 10 Nov 2017 06:22:29 +0000 Reply-To: impala-cr@cloudera.com, marcelk@gmail.com, tarmstrong@cloudera.com, joemcdonnell@cloudera.com, reviews@impala.incubator.apache.org, bikramjeet.vig@cloudera.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.14.2 Content-Type: multipart/alternative; boundary="KS9FCRHkPds="; charset=UTF-8 archived-at: Fri, 10 Nov 2017 06:22:37 -0000 --KS9FCRHkPds= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Pranay Singh has posted comments on this change=2E ( http://gerrit=2Ecloude= ra=2Eorg:8080/8034 ) Change subject: IMPALA-5522:Use tracked memory for Di= ctDecoder and DictEncoder =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E Patch Set 16: (10 comments) http://gerrit=2Ecloudera=2Eorg= :8080/#/c/8034/15/be/src/util/dict-encoding=2Eh File be/src/util/dict-encod= ing=2Eh: http://gerrit=2Ecloudera=2Eorg:8080/#/c/8034/15/be/src/util/dict-= encoding=2Eh@54 PS15, Line 54: DCHECK(buffered_indices_=2Eempty()); > O= k to leave for now but we've generally been moving towards using the recen = Done http://gerrit=2Ecloudera=2Eorg:8080/#/c/8034/15/be/src/util/dict-enc= oding=2Eh@59 PS15, Line 59: / This > DCHECK_EQ(dict_bytes_cnt_, 0); Done = http://gerrit=2Ecloudera=2Eorg:8080/#/c/8034/15/be/src/util/dict-encoding= =2Eh@77 PS15, Line 77: /// indices=2E Used to size the buffer passed to W= riteData()=2E > To add to what Tim said, this code didn't actually change, = so it is nice to Done http://gerrit=2Ecloudera=2Eorg:8080/#/c/8034/15/be/= src/util/dict-encoding=2Eh@77 PS15, Line 77: /// indices=2E Used to size = the buffer passed to WriteData()=2E > We generally use the more concise one= -line formatting for very short single Done http://gerrit=2Ecloudera=2Eor= g:8080/#/c/8034/15/be/src/util/dict-encoding=2Eh@123 PS15, Line 123: > for= matting nit: * goes on the left with the type name=2E Done http://gerrit= =2Ecloudera=2Eorg:8080/#/c/8034/15/be/src/util/dict-encoding=2Eh@152 PS15, = Line 152: } : num_call_track_++; : = } : } : }; > I think we can omit this des= tructor, since DictEncoderBase does the same th Done http://gerrit=2Eclou= dera=2Eorg:8080/#/c/8034/15/be/src/util/dict-encoding=2Eh@168 PS15, Line 16= 8: /// th > nit: inline isn't necessary=2E It isn't harmful but can be conf= using to have Done http://gerrit=2Ecloudera=2Eorg:8080/#/c/8034/15/be/sr= c/util/dict-encoding=2Eh@269 PS15, Line 269: > nit: * should be on left=2E= Done http://gerrit=2Ecloudera=2Eorg:8080/#/c/8034/15/be/src/util/dict-en= coding=2Eh@296 PS15, Line 296: : template = : class DictDecoder : public DictDecoderBase { : pub= lic: : // > I think we can omit this destructor, as DictDec= oderBase does this=2E Done http://gerrit=2Ecloudera=2Eorg:8080/#/c/8034/1= 5/be/src/util/dict-encoding=2Eh@330 PS15, Line 330: /// It > nit: unnecessa= ry inline Done -- To view, visit http://gerrit=2Ecloudera=2Eorg:8080/80= 34 To unsubscribe, visit http://gerrit=2Ecloudera=2Eorg:8080/settings Gerr= it-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Ge= rrit-Change-Id: I02a3b54f6c107d19b62ad9e1c49df94175964299 Gerrit-Change-Num= ber: 8034 Gerrit-PatchSet: 16 Gerrit-Owner: Pranay Singh Gerrit-Reviewer: B= ikramjeet Vig Gerrit-Reviewer: Joe McDonn= ell Gerrit-Reviewer: Pranay Singh Gerrit-Revi= ewer: Tim Armstrong Gerrit-Comment-Date: Fri, 1= 0 Nov 2017 06:22:29 +0000 Gerrit-HasComments: Yes --KS9FCRHkPds=--