yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #00305
Re: Note on optimized compilation / optimized coding / profiling results
Janek Kozicki a écrit :
> Václav S(milauer said: (by the date of Tue, 26 Feb 2008 17:42:54 +0100)
>
>
>> getBaseClassIndex creates an instance of the base class at every call,
>>
>> from Indexable.hpp
>>
>> static boost::scoped_ptr<BaseClass> baseClass(new BaseClass); \
>>
>
>
> It does NOT create an instance at every call. The variable
> "baseClass" is static. It is created just once, on the first call.
> It should, at least. We can put cerr << into the constructor to
> verify this.
>
That is true : valgrind shows only one call to "new" in 100k iterations.
Time is spent in another function that I can't identify (named
"0x000F..."), probably because it is a macro, an inlined function, or
something like that.
Bruno
--
_______________
Chareyre Bruno
Maitre de conference
Institut National Polytechnique de Grenoble
Laboratoire 3S (Soils Solids Structures) - bureau E145
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 33 4 56 52 86 21
Fax : 33 4 76 82 70 43
________________
_______________________________________________
yade-dev mailing list
yade-dev@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-dev
Follow ups
References
-
Note on optimized compilation / optimized coding / profiling results
From: Bruno Chareyre, 2008-02-21
-
Re: Note on optimized compilation / optimized coding / profiling results
From: Janek Kozicki, 2008-02-21
-
Re: Note on optimized compilation / optimized coding / profiling results
From: Bruno Chareyre, 2008-02-22
-
Re: Note on optimized compilation / optimized coding / profiling results
From: Bruno Chareyre, 2008-02-22
-
Re: Note on optimized compilation / optimized coding / profiling results
From: milauer <eudoxos@xxxxxxxx>, 2008-02-23
-
Re: Note on optimized compilation / optimized coding / profiling results
From: Bruno Chareyre, 2008-02-25
-
Re: Note on optimized compilation / optimized coding / profiling results
From: milauer <eudoxos@xxxxxxxx>, 2008-02-25
-
Re: Note on optimized compilation / optimized coding / profiling results
From: Bruno Chareyre, 2008-02-26
-
Re: Note on optimized compilation / optimized coding / profiling results
From: milauer <eudoxos@xxxxxxxx>, 2008-02-26
-
Re: Note on optimized compilation / optimized coding / profiling results
From: Janek Kozicki, 2008-02-26