One of the answers on this Stack Overflow question
<http://stackoverflow.com/questions/3628081/shared-ptr-horrible-speed>
suggests that we can fix the memory issue by using `making_shared`:

> *use* |make_shared|
<http://en.cppreference.com/w/cpp/memory/shared_ptr/make_shared> *to
allocate them*, because (unfortunately) the normal constructor allocates
two different blocks: one for the object and one for the counter and
deleter.

Unfortunately, it looks like
<http://nerds-central.blogspot.com/2012/03/sharedptr-performance-issues-and.html>
they're really slow because they're thread-safe, but that may also apply
to RefPtr.
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to