> We are experiencing performance issues when running ruby. That is if this
> binary was created with the --enable-pthread option.  Executing these tests
> with ruby 1.8.7 does not show this performance degradation.
> This made me compare the sources of both ruby versions. Since it was soon
> obvious that there was a strong relation between this degradation and the
> set/getcontext functions I focussed on where these two functions were used.
> This happens to be the case in eval.c
> In this file I found  __builting_setjmp and __builtin_longjmp being used in
> 1.8.7. But not in 1.8.6.
> Besides that it also turned out that the use of both xxxcontext functions
> was triggered by a #define in config.h.

so 1.8.7 with and without pthread were the same--about as fast as
1.8.6 without pthread?
I wonder if pthread degrades 1.9's speed--I'd doubt it [1.9 has proven
pretty robust] but who knows.

Thanks!
-=R