This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Replacing string += "." by '.'


>triggered by a recent patch of Paolo, I thought about the implications of 
>replacing adding single characters like
>  __str += '=';
>by
>  __str += "=";
>
>It seemed to me that the latter is more expensive.

Absolutely. I was a bit surprised to see this as well.

-benjamin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]