This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
libstdc++/55169
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Cc: Ed Smith-Rowland <3dw4rd at verizon dot net>
- Date: Thu, 01 Nov 2012 21:32:39 +0100
- Subject: libstdc++/55169
Hi,
in this PR submitter points out that in the various distributions for
the purpose of forwarding we are using param() which returns by value,
and it's of course unnecessarily expensive when param_type is big. For
4.8 I think we should simply change it to _M_param everywhere and be
done with it. Maybe for 4.7.3 too, seems a very safe change.
In mainline however chi_squared_distribution is special: Ed can you see
if you can rework it a little bit and manage to avoid calling param() in
that case too? If possible without recurring to friendship...
Thanks!
Paolo.
///////////////////////
Attachment:
patch_55169
Description: Text document