You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@impala.apache.org by "Dan Hecht (Code Review)" <ge...@cloudera.org> on 2016/06/29 19:09:49 UTC

[Impala-CR](cdh5-trunk) IMPALA-3780: avoid many small reads past end of block

Dan Hecht has posted comments on this change.

Change subject: IMPALA-3780: avoid many small reads past end of block
......................................................................


Patch Set 3: Code-Review+2

(4 comments)

http://gerrit.cloudera.org:8080/#/c/3518/3/be/src/exec/scanner-context.cc
File be/src/exec/scanner-context.cc:

Line 162:     read_past_buffer_size = ::min(read_past_buffer_size, max_buffer_size);
this is fine, but why is this min() needed now whereas it wasn't before?


Line 262:       RETURN_IF_ERROR(boundary_buffer_->EnsureCapacity(requested_len));
were there cases where requested_len is much larger than the number of bytes that can be read, and so pre-allocating it will waste a lot of memory?


http://gerrit.cloudera.org:8080/#/c/3518/3/be/src/exec/scanner-context.h
File be/src/exec/scanner-context.h:

PS3, Line 103: .
... (see GetNextBuffer()).


http://gerrit.cloudera.org:8080/#/c/3518/3/be/src/runtime/string-buffer.h
File be/src/runtime/string-buffer.h:

PS3, Line 99: int
this may conflict with Michael's 64-bit change (changed len's to 64-bits).


-- 
To view, visit http://gerrit.cloudera.org:8080/3518
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Id90c5dea44f07dba5dd465cf325fbff28be34137
Gerrit-PatchSet: 3
Gerrit-Project: Impala
Gerrit-Branch: cdh5-trunk
Gerrit-Owner: Tim Armstrong <ta...@cloudera.com>
Gerrit-Reviewer: Dan Hecht <dh...@cloudera.com>
Gerrit-Reviewer: Michael Ho
Gerrit-Reviewer: Tim Armstrong <ta...@cloudera.com>
Gerrit-HasComments: Yes