help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inheritance - why so slow?


From: Krzysztof Duleba
Subject: Re: Inheritance - why so slow?
Date: Thu, 7 Oct 2004 23:15:22 +0200

Krzysztof Duleba wrote:

> This is even better:
>
> perl -e 'print "class A0{};\n";for(1..$ARGV[0]){print "class A$_:public
";
> for($i=$_-1;$i>=1;--$i){print "A$i,"}print "A0{};\n";}
> print "int main(){}\n"'    _number_
>
> This code generates some compilation warnings, so it's better to disable
> them first.
>
> _number_    time
> 10        0,620s
> 11        1,670s
> 12        9,127s
> 13        -
>
> In the last case, when _number_ == 13, g++ failed to compile the code
and
> bailed out. Before that, it was running for about 40s and used as much
as
> 640 MB of memory.

Nobody else finds this interesting? Or is this wrong list to talk about
it?

Regards
Krzysztof Duleba






reply via email to

[Prev in Thread] Current Thread [Next in Thread]