This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: malloc attributes and realloc


 > The claim that #3 is a poor choice is based on the (almost certainly
 > correct, but not actually verified) assumption that the gains from
 > this optimization are negligible. Personally I think that's a safe
 > assumption (and I am dubious about the claims of significant gains in
 > the malloc case).

Negligible is in the eye of the beholder.

I've done tests, described the exact parameters and posted the results
in terms of GCC compile-time difference.  You're free to try any of
the three experiments I did yourself and either confirm or refute my
figures.  But remaining suspicious in the absence of your own legwork
doesn't carry much scientific weight.

--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]