Messages in this thread | | | Date | Fri, 4 Oct 2013 15:30:12 -0400 | From | Steven Rostedt <> | Subject | Re: [PATCH 1/5] rcusync: introduce struct rcu_sync_ops |
| |
On Fri, 4 Oct 2013 12:12:25 -0700 Linus Torvalds <torvalds@linux-foundation.org> wrote:
> - together with using a few inline functions, suddenly the "indirect" > jumps through this type descriptor end up actually being nice direct > compile-time constants: iow, they get turned into direct jumps.
As all the rcu_synchronization() methods (on non UP) are quite expensive, I doubt that this optimization is worth anything.
> > Tadaa. You actually get good code generation, and you use *less* > dynamic memory since you don't have to have this pointer to the > descriptor.
Getting rid of the extra dynamic memory and the pointer business, on the other hand, does make your suggestion worth doing.
-- Steve
| |