Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-249

std::operator>>(istream, string&) inefficient

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.1.2, 4.1.3, 4.1.4, 4.2.0
    • 4.2.1
    • 21. Strings
    • None
    • all

    • Patch Available
    • Inefficiency

    Description

      The string extractor reads and appends one character at a time. It could be made more efficient by extracting and appending all non-whitespace characters that are available in the buffer in chunks. See the definition of the operator here:
      http://svn.apache.org/viewvc/stdcxx/trunk/include/istream.cc?revision=383265

      Attachments

        1. stdcxx-249.patch
          8 kB
          Travis Vitek

        Activity

          People

            vitek Travis Vitek
            sebor Martin Sebor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 8h Original Estimate - 8h
                8h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10h
                10h