Added call to traits_type::copy in common case.
Worked in collaboration with Aditya Kumar, Sebastian Pop.
Differential D21103
optimized xsgetn for better performance laxmansole on Jun 7 2016, 3:04 PM. Authored by
Details Added call to traits_type::copy in common case. Worked in collaboration with Aditya Kumar, Sebastian Pop.
Diff Detail Event TimelineComment Actions This is a performance related change: the copy function is translated into a memcpy that is more efficient than copying byte by byte. Comment Actions This looks like a counterpart to http://reviews.llvm.org/rL229866, which did the same thing for xsputn. Comment Actions I have seen a reduction by several billion instructions when measuring with valgrind the perf of an application that uses streams to pipe data through. Comment Actions Other than the min thing, this looks good to me.
|
Please use _VSTD::min instead of std::min