On 16 November 2017 at 15:54, Kyotaro HORIGUCHI <horiguchi.kyot...@lab.ntt.co.jp> wrote: > Anyway I added __attribute((noinline)) to the two > functions and got the following result. > >> bms_add_range in 1.24 (12.4 ns per loop) >> bms_add_range2 in 0.8 (8 ns per loop)
I see similar here with __attribute((noinline)). Thanks for investigating that. Your way is clearly better. Thanks for suggesting it. -- David Rowley http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services