From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16185 invoked by alias); 5 Oct 2005 10:20:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 16154 invoked by uid 48); 5 Oct 2005 10:20:11 -0000 Date: Wed, 05 Oct 2005 10:20:00 -0000 Message-ID: <20051005102011.16153.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libstdc++/24196] Using string instances to pass arguments to dlls fails In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pcarlini at suse dot de" X-SW-Source: 2005-10/txt/msg00441.txt.bz2 List-Id: ------- Comment #7 from pcarlini at suse dot de 2005-10-05 10:20 ------- PS: if you are going to experiment with _GLIBCXX_FULLY_DYNAMIC_STRING defined by default, I would suggest also testing the performance impact of the following: change the default constructor to allocate memory on the heap not only for the '\0', but also for a given small capacity > 0, say 15 chars. This would recover in some cases the initial overhead by not freeing and allocating memory at the first real usage. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24196