Faster c++ type lookups for strings