This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51618] New: synchronous futures are slow
- From: "dave at boostpro dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 19 Dec 2011 06:01:24 +0000
- Subject: [Bug libstdc++/51618] New: synchronous futures are slow
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51618
Bug #: 51618
Summary: synchronous futures are slow
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: dave@boostpro.com
Created attachment 26133
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26133
demo
The attached program demonstrates; if you compile with -DNO_SYNCHRONOUS_FUTURE
it will run much faster. I don't know if this should be considered a
performance bug or not, but it seems to me that in principle it should be
possible to make synchronous futures much faster than that; they could
type-erase an object with no attached synchronization, right?