3 ms·OK sorry, Yes creating a map/set using the small-size optimization is internally doing a sort.by Ericson2314 6y agoOK sorry, Yes creating a map/set using the small-size optimization is internally doing a sort.