Andrew Wong has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/15800 )

Change subject: KUDU-2844 (1/3): make BlockHandle ref-counted
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/15800/2/src/kudu/cfile/block_handle.h
File src/kudu/cfile/block_handle.h:

http://gerrit.cloudera.org:8080/#/c/15800/2/src/kudu/cfile/block_handle.h@94
PS2, Line 94:   boost::variant<BlockCacheHandle, std::shared_ptr<BlockHandle>> 
ref_;
> One further note here: it would be easy to cut out the enable_shared_from_t
Shared_ptr being standard and having support for weak_ptr use cases is where it 
might win out. I don't think this particular use case benefits from either so 
I'd also be inclined to switch back to scoped_refptr (sorry for the back and 
forth here).

I could be convinced that using the standard is worth its weight in memory if 
there were some neat shared_ptr features coming in later versions of C++ but 
none really catch my eye.



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I1077fcc841ca31a2cb523769fffeed2d27782bc1
Gerrit-Change-Number: 15800
Gerrit-PatchSet: 2
Gerrit-Owner: Todd Lipcon <t...@apache.org>
Gerrit-Reviewer: Alexey Serbin <aser...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <andrew.w...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Todd Lipcon <t...@apache.org>
Gerrit-Reviewer: Volodymyr Verovkin <verjov...@cloudera.com>
Gerrit-Comment-Date: Thu, 13 Aug 2020 21:23:56 +0000
Gerrit-HasComments: Yes

Reply via email to