220 31020 <46ec3307-ecfe-493c-b260-f2a39578d5ba@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Olaf van der Spek <olafvdspek@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: operator<< for std::string
Date: Tue, 21 Feb 2017 09:11:13 -0800 (PST)
Lines: 77
Approved: news@gmane.org
Message-ID: <46ec3307-ecfe-493c-b260-f2a39578d5ba@isocpp.org>
References: <7552b5b4-e778-46a2-a6f8-fabca5b16dc4@isocpp.org>
 <75e1c827-a2af-4dfa-9426-dc5a00a0d408@isocpp.org>
 <c1f7a833-a8fa-48d7-96c2-1ffe8ae292fc@isocpp.org>
 <85aefeb5-3c83-47de-a91d-3aef22d6a1ec@isocpp.org>
 <5f77cec0-c0b3-4993-9c3e-318c7e985f7f@isocpp.org>
 <cc23a9d4-db7d-40d7-b462-bba1ce306b12@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_1461_1294403352.1487697073697"
X-Trace: blaine.gmane.org 1487697077 28482 195.159.176.226 (21 Feb 2017 17:11:17 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 21 Feb 2017 17:11:17 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5NB45SSABBBMXJWHCQKGQE6XYITHI@isocpp.org Tue Feb 21 18:11:12 2017
Return-path: <std-proposals+bncBC5NB45SSABBBMXJWHCQKGQE6XYITHI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-it0-f71.google.com ([209.85.214.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5NB45SSABBBMXJWHCQKGQE6XYITHI@isocpp.org>)
	id 1cgDy1-0006eP-Kq
	for gclcip-std-proposals@m.gmane.org; Tue, 21 Feb 2017 18:11:11 +0100
Original-Received: by mail-it0-f71.google.com with SMTP id y196sf195436132ity.1
        for <gclcip-std-proposals@m.gmane.org>; Tue, 21 Feb 2017 09:11:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=JWO3Y+xNyTarjLGeSiN2by428obpvv5GjeWdzgvis2Q=;
        b=i3askOE8eds5PVYhJuX4XUmpsyptHIC2+9tosvMdO0c2xhh8AV+mDp6rf2fkD9m3u7
         4vNhyxNqZTB7V9FnUKe6UyS7wV/ArOcQLKNrWcZf2ob/3fgN94DAPrIr8CuqUyW/g3mF
         Na6jK7OXl9X1lEXDRsC+gBI6s1rpV4yTrujlAJ6aIJdDQAH2Lj2ozt/0fH53erXJZHxw
         z8dEw9Cg2vFEonFcXVGFY8CWK6NTjK3OcBzUYdpmBP5FOgFHBeR4G9VD04oe7sJHyct6
         rdccqCzwYYsUy3Jb2y5+1iFhc3n4uq71sSM9ql/rh/kqFAowZSSSUtI+youzPzXqGK7P
         cbUA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=JWO3Y+xNyTarjLGeSiN2by428obpvv5GjeWdzgvis2Q=;
        b=IjG07Ub4Hnqg3veDOePT7hn3nqMofmMKg3iXjMn3bG9OmNjsDAOSlqW0OGQeoRQKUm
         GJM+IFzoKtmRxTBjXrl6SG0zhgM0Gd0weY6OnFJ6W/bhptli/HbL5szwBrXRvmm4t9Fk
         bF6slkVpprM2Mn3evxORNC1/DremDSKVhKXgnA2AVQ9GF1my70RRR6Ow+3W84Nvu8KOP
         xOar0kgj3bEfsZDfZFdFOJvtggDEOu/iAn58I2WzJg5TuapPo1kBuk1spU6/i5GbmY4t
         ENASf1wzQR0g7BuDMSeBtBMOQEcGQBie7xBxZ2DGpFQRpWgpxny+lWRIKwumQbucD0qU
         +Ehw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=JWO3Y+xNyTarjLGeSiN2by428obpvv5GjeWdzgvis2Q=;
        b=LRHcHgJ/T5eVUuCpLMRbHskbZr/o/7rcKJkD7oo4OEi8TAOGVCE3aNNSTKaOZE86CE
         NMK/Qzf+wAxCjQfMMk7mKldDtBToSyQ/9MqSoDjq/lhJ0AZK09Q16MNMzJ8lPnisi2eJ
         CVnQFxHr+y3afcuUig/ng/IrbdN142Mt63YCskz22gVa4HgSElK5nHi+6tfqCy31J3X1
         u1qfBAme7A/nSZmTZZRhC162MIdzH6mq83Yv7bnqY1kSX5ZnFpWvWcbvmdR1pwhuO12g
         Qw/fnAicpVMLwkGpdmnotJbLmd7TNe+snZCr0Lph5jFRnA96kM+YeoNUyKoxUeqrXwRp
         wRlw==
X-Gm-Message-State: AMke39nN+1neNhJ0Zi8mium6vWzIY5arCejNJQxkOmaG/epG+ArfQJQhIfNvs0CH4OJztQ==
X-Received: by 10.36.37.199 with SMTP id g190mr11267247itg.0.1487697075348;
        Tue, 21 Feb 2017 09:11:15 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.32.34 with SMTP id n31ls13495164ota.4.gmail; Tue, 21 Feb
 2017 09:11:14 -0800 (PST)
X-Received: by 10.157.17.114 with SMTP id p47mr1784371otp.6.1487697074583;
        Tue, 21 Feb 2017 09:11:14 -0800 (PST)
In-Reply-To: <cc23a9d4-db7d-40d7-b462-bba1ce306b12@isocpp.org>
X-Original-Sender: olafvdspek@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:31020
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/31020>

------=_Part_1461_1294403352.1487697073697
Content-Type: multipart/alternative; 
	boundary="----=_Part_1462_396766727.1487697073697"

------=_Part_1462_396766727.1487697073697
Content-Type: text/plain; charset=UTF-8



Op dinsdag 21 februari 2017 17:21:57 UTC+1 schreef Nicol Bolas:
>
> I do not *like* iostreams. I'd rather we have something better and 
> faster. But stringstream solves the problem that the OP wants solved quite 
> adequately. 
>

Performance matters.
Syntax matters.

pilfer() is nice but I don't think it solves everything.
  

> The principle performance problem that stringstream has is the additional 
> copy after formatting. Get rid of that, and most of the performance 
> difference goes away.
>

What happened to performance issues related to locales and virtual calls?

 

-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/46ec3307-ecfe-493c-b260-f2a39578d5ba%40isocpp.org.

------=_Part_1462_396766727.1487697073697
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>Op dinsdag 21 februari 2017 17:21:57 UTC+1 schreef=
 Nicol Bolas:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-le=
ft: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr">=
<div><div>I do not <i>like</i> iostreams. I&#39;d rather we have something =
better and faster. But stringstream solves the problem that the OP wants so=
lved quite adequately. </div></div></div></blockquote><div><br></div><div>P=
erformance matters.</div><div>Syntax matters.</div><div><br></div><div>pilf=
er() is nice but I don&#39;t think it solves everything.</div><div>=C2=A0=
=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-lef=
t: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr"><=
div><div>The principle performance problem that stringstream has is the add=
itional copy after formatting. Get rid of that, and most of the performance=
 difference goes away.<br></div></div></div></blockquote><div><br></div><di=
v>What happened to performance issues related to locales and virtual calls?=
</div><div><br></div><div>=C2=A0</div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/46ec3307-ecfe-493c-b260-f2a39578d5ba%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/46ec3307-ecfe-493c-b260-f2a39578d5ba=
%40isocpp.org</a>.<br />

------=_Part_1462_396766727.1487697073697--

------=_Part_1461_1294403352.1487697073697--

.
