[libstdc++ PATH] tr1::bind support

Doug Gregor dgregor@cs.indiana.edu
Tue Mar 22 19:32:00 GMT 2005


On Mar 22, 2005, at 11:48 AM, Matt Austern wrote:

> On Tue, 22 Mar 2005 17:20:04 +0100, Florian Weimer <fw@deneb.enyo.de> 
> wrote:
>> * Chris Jefferson:
>>
>>> Can I just query how long other people are finding programs take to
>>> compile with tr1::bind?
>>
>> Maybe it's necessary to implement bind (and tuple) directly in the
>> compiler, using more efficient data structures, instead of template
>> metaprogramming?
>
>> From the description we've been given it sounds like the issue is
> preprocessor metaprogramming, not template metaprogramming.

I speculated that it was an issue with preprocessor metaprogramming, 
but I was wrong. Chris verified that preprocessing does not help, but 
precompiled headers do help, so the bottleneck seems to be in the C++ 
parser. It's probably not the template metaprogramming per se that's 
causing the problem; I think the issue is just that there's a LOT of 
code to be parsed.

	Doug



More information about the Libstdc++ mailing list