Michael Smith has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/19181 )

Change subject: IMPALA-11470: Add Cache For Codegen Functions
......................................................................


Patch Set 11:

(9 comments)

http://gerrit.cloudera.org:8080/#/c/19181/9/be/src/codegen/llvm-codegen-cache.h
File be/src/codegen/llvm-codegen-cache.h:

http://gerrit.cloudera.org:8080/#/c/19181/9/be/src/codegen/llvm-codegen-cache.h@69
PS9, Line 69: 
> My understanding is correct, the unordered_set requires a structure to hash
Done


http://gerrit.cloudera.org:8080/#/c/19181/9/be/src/codegen/llvm-codegen-cache.h@80
PS9, Line 80:   /// The type of the length of a general element in the codegen 
cache key.
> Seems we don't need the equal function, because unordered_set can call it f
Done


http://gerrit.cloudera.org:8080/#/c/19181/5/be/src/codegen/llvm-codegen-cache.cc
File be/src/codegen/llvm-codegen-cache.cc:

http://gerrit.cloudera.org:8080/#/c/19181/5/be/src/codegen/llvm-codegen-cache.cc@51
PS5, Line 51:   }
> The codebase convention is to use by pointer instead of by reference for an
Done


http://gerrit.cloudera.org:8080/#/c/19181/5/be/src/codegen/llvm-codegen-cache.cc@54
PS5, Line 54: void CodeGenCacheKeyConstructor::construct(
> It could be useful if we have a key analyzer later. Changed the name to Ele
Done


http://gerrit.cloudera.org:8080/#/c/19181/5/be/src/codegen/llvm-codegen-cache.cc@66
PS5, Line 66:   string result;
> Sorry that I misunderstood, changed.
Done


http://gerrit.cloudera.org:8080/#/c/19181/5/be/src/codegen/llvm-codegen-cache.cc@76
PS5, Line 76:   cache_key->set_key(move(result));
> Done
Done


http://gerrit.cloudera.org:8080/#/c/19181/5/be/src/codegen/llvm-codegen-cache.cc@122
PS5, Line 122:   Cache::UniqueHandle handle(cache_->Lookup(key));
> This is a good idea. Changed to use MurmurHash3_x64_128 and added comments.
Done


http://gerrit.cloudera.org:8080/#/c/19181/9/be/src/codegen/llvm-codegen.cc
File be/src/codegen/llvm-codegen.cc:

http://gerrit.cloudera.org:8080/#/c/19181/9/be/src/codegen/llvm-codegen.cc@1138
PS9, Line 1138:   CodeGenCache* cache = ExecEnv::GetInstance()->codegen_cache();
> I think the debug mode should not have this issue, but consumes much more m
Done


http://gerrit.cloudera.org:8080/#/c/19181/11/common/thrift/Query.thrift
File common/thrift/Query.thrift:

http://gerrit.cloudera.org:8080/#/c/19181/11/common/thrift/Query.thrift@90
PS11, Line 90: enum TCodeGenCacheMode {
It seems strange to code these as an enum rather than 2 booleans, since you end 
up enumerating all combinations.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If42c78a7f51fd582e5fe331fead494dadf544eb1
Gerrit-Change-Number: 19181
Gerrit-PatchSet: 11
Gerrit-Owner: Yida Wu <wydbaggio...@gmail.com>
Gerrit-Reviewer: Abhishek Rawat <ara...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <csringho...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <daniel.bec...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <joemcdonn...@cloudera.com>
Gerrit-Reviewer: Michael Smith <michael.sm...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qfc...@hotmail.com>
Gerrit-Reviewer: Yida Wu <wydbaggio...@gmail.com>
Gerrit-Comment-Date: Mon, 28 Nov 2022 20:09:53 +0000
Gerrit-HasComments: Yes

Reply via email to