Re: [PATCH 4/6] rbtree: faster augmented insert

From: Peter Zijlstra
Date: Fri Jul 27 2012 - 15:31:18 EST


On Fri, 2012-07-20 at 05:31 -0700, Michel Lespinasse wrote:
>
> rb_insert_color() is now a special case of rb_insert_augmented() with
> a do-nothing callback. I used inlining to optimize out the callback,
> with the intent that this would generate the same code as previously
> for rb_insert_augmented(). This didn't fully work, as my compiler output
> is now *smaller* than before for that function. Speed wise, they seem
> comparable though.

It might be good to mention which particular GCC you're using.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/