[webkit-dev] When to use FastAllocBase?

2010-10-04 Thread Tony Gentilcore
For general reference, when is it appropriate to use FastAllocBase? If you subclass RefCountedT or Noncopyable, which is very common, you pick up FastAllocBase. So, my naive guess is that any class/struct which doesn't pick up FastAllocBase through its inheritance chain should subclass it

Re: [webkit-dev] When to use FastAllocBase?

2010-10-04 Thread Adam Barth
On Mon, Oct 4, 2010 at 11:31 AM, Tony Gentilcore to...@chromium.org wrote: For general reference, when is it appropriate to use FastAllocBase? If you subclass RefCountedT or Noncopyable, which is very common, you pick up FastAllocBase. So, my naive guess is that any class/struct which doesn't

Re: [webkit-dev] When to use FastAllocBase?

2010-10-04 Thread Darin Adler
On Oct 4, 2010, at 11:31 AM, Tony Gentilcore wrote: If you subclass RefCountedT or Noncopyable, which is very common, you pick up FastAllocBase. Yes, so in those cases you don’t want to use it. So, my naive guess is that any class/struct which doesn't pick up FastAllocBase through its

Re: [webkit-dev] When to use FastAllocBase?

2010-10-04 Thread Tony Gentilcore
Thanks for the responses. That clears everything up for me. I would recommend we add something to http://webkit.org/coding/coding-style.html, but it sounds like we shouldn't do anything at this point since everything is change. On Mon, Oct 4, 2010 at 11:46 AM, Darin Adler da...@apple.com wrote: