[webkit-dev] WTF and STL

Darin Adler darin at apple.com
Tue Jun 23 08:39:41 PDT 2015

> On Jun 23, 2015, at 1:40 AM, youenn fablet <youennf at gmail.com> wrote:
> Vector

Many features in WTF::Vector are critical to performance, such as inline capacity, the specifics of its growth strategy, functions to preallocate at a particular size, and to trim once allocated. Some might have equivalents in the standard library but not all. It’s unlikely we could switch to std::vector.

> Deque

As with WTF::Vector, it’s likely that there are memory use and performance features that would make it a challenge to switch from WTF::Deque to std::deque, but could investigate this.

> Optional

We would like to switch from WTF::Optional to std::optional once it’s available on the platforms WebKit supports. But note that std::optional was removed from C++14; that’s one reason it’s probably not available everywhere yet.

— Darin

More information about the webkit-dev mailing list