2 ms·
You didn't say which std function you were using that was slow. But std::from_chars performs a lot faster than std::stoi et al due to many reasons.
by leopoldj 3y ago
You didn't say which std function you were using that was slow. But std::from_chars performs a lot faster than std::stoi et al due to many reasons.
- throwaway81523 3y agoYeah I don't remember what I originally used. It might have been stoi but it might have been iostream.