impala-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Hecht (Code Review)" <ger...@cloudera.org>
Subject [Impala-CR](cdh5-trunk) IMPALA-3780: avoid many small reads past end of block
Date Wed, 29 Jun 2016 19:09:49 GMT
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 <tarmstrong@cloudera.com>
Gerrit-Reviewer: Dan Hecht <dhecht@cloudera.com>
Gerrit-Reviewer: Michael Ho
Gerrit-Reviewer: Tim Armstrong <tarmstrong@cloudera.com>
Gerrit-HasComments: Yes

Mime
View raw message