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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.2, 4.1.3, 4.1.4, 4.2.0
    • Fix Version/s: 4.2.1
    • Component/s: 21. Strings
    • Labels:
      None
    • Environment:

      all

    • Patch Info:
      Patch Available
    • Severity:
      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

            • Assignee:
              vitek Travis Vitek
              Reporter:
              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