[webkit-dev] std::shared_ptr?

Ryosuke Niwa rniwa at webkit.org
Sat Oct 26 11:45:40 PDT 2013

I don't think we can afford to use shared_ptr.  As far as I know, it
allocates a new memory space for each object to be shared.  Doing that for
every DOM node will probably be prohibitively expensive.

- R. Niwa

On Sat, Oct 26, 2013 at 11:16 AM, Brendan Long <self at brendanlong.com> wrote:

> On 10/25/2013 06:38 PM, Darin Adler wrote:
> > We are replacing PassOwnPtr and OwnPtr with std::unique_ptr. This is
> > part of a general trend where we are adopting some C++11 language and
> > library features.
> Is there any plan to replace RefPtr with std::shared_ptr too, or is
> there some reason why that would be a bad idea?
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20131026/f247562f/attachment.html>

More information about the webkit-dev mailing list