minor performance improvement on std::map insertion