Instead of including <ios> for ios_base::failbit simply get failbit member of the template argument.
Print directly to a stream instead of using intermediate ostringstream.
Parsing time: 874ms -> 164ms (-81%)
Differential D71214
[libc++] reduce <complex> parsing time nick on Dec 9 2019, 9:53 AM. Authored by
Details
Instead of including <ios> for ios_base::failbit simply get failbit member of the template argument. Parsing time: 874ms -> 164ms (-81%)
Diff Detail
Event TimelineComment Actions Do you have commit access?
Comment Actions No, I do not have commit rights.
|
I'm thinking there must be a reason why it was written that way, but I can't think of any and your version indeed seems more straightforward.