You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Travis Vitek (JIRA)" <ji...@apache.org> on 2008/02/05 20:49:07 UTC
[jira] Updated: (STDCXX-249) std::operator>>(istream, string&)
inefficient
[ https://issues.apache.org/jira/browse/STDCXX-249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Travis Vitek updated STDCXX-249:
--------------------------------
Attachment: stdcxx-249.patch
{noformat}
2008-02-05 Travis Vitek <vi...@roguewave.com>
STDCXX-249
* include/istream.cc (operator>>): Read stream data in blocks
where possible for efficiency.
* include/streambuf: Add operator>> as friend for access to
protected member functions.
{noformat}
> std::operator>>(istream, string&) inefficient
> ---------------------------------------------
>
> Key: STDCXX-249
> URL: https://issues.apache.org/jira/browse/STDCXX-249
> Project: C++ Standard Library
> Issue Type: Improvement
> Components: 21. Strings
> Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0
> Environment: all
> Reporter: Martin Sebor
> Assignee: Travis Vitek
> Priority: Minor
> Fix For: 4.2.1
>
> Attachments: stdcxx-249.patch
>
> Original Estimate: 8h
> Remaining Estimate: 8h
>
> 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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.