kainjow / Mustache

Mustache text templates for modern C++
Boost Software License 1.0
357 stars 49 forks source link

use of flath_hash maps #49

Closed patlecat closed 4 years ago

patlecat commented 4 years ago

Hi again

I see you use the standard STL maps. I was looking into faster alternatives and among others I found the Abseil flat_hash_map container from Google. The use of this should speed up your code by factors I can imagine. What do you think about it? https://abseil.io/docs/cpp/guides/container

kainjow commented 4 years ago

Hi, thanks for the suggestion but I'd prefer to use STL so there are no third-party dependencies.

I am open to making the container types customized through templates though.

patlecat commented 4 years ago

Yeah, a plugin mechanism to use alternate containers would be fine too.