This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: totally folding string operations
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Giovanni Bajo <giovannibajo at libero dot it>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Thu, 30 Sep 2004 13:49:16 +0200
- Subject: Re: totally folding string operations
- References: <cjfs3j$7da$1@sea.gmane.org>
Hi Giovanni,
very interesting and complex issues, thanks...
... An
idea here would be to construct a new optimizer pass which transforms closed
pairs of new/delete calls of constant size into alloca().
Comments?
For now, only a very quick comment (I'm rather sure to say something
sensible
at least about this :) I don't think this specific idea would work
often, for
the simple reason that typically (by default in mainline, f.i.) we us pool
allocation and no actual new/delete pairs are involved for short string...
Paolo.