4 ms·
Yeah <iostream> has terrible performance, and also I find the use of a map rather than an unordered_map a bit suspect.
by taspeotis 3y ago
Yeah <iostream> has terrible performance, and also I find the use of a map rather than an unordered_map a bit suspect.
- jodleif 3y agoIts much easier to improve is the baseline is terrible
- dkersten 3y agoStandard library maps/unordered_maps are themselves notoriously slow anyway. A flat_hash_map from abseil or parallel-hashmaps[1] would be better. [1] https://github.com/greg7mdp/parallel-hashmap https://github.com/greg7mdp/parallel-hashmap