[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-devel:17509] Re: ruby で --enable-pthreads を外してビルドすると速くなる?



西山和広です。

At Wed, 7 Jan 2009 23:03:15 +0900,
Hideki Yamane wrote:
> 
>  やまねです。全然分かってないので質問を。
> 
>  ruby で --enable-pthreads を有効にするかしないかでスピードが2倍違うぜ、
>  という話がありました。
>  http://antoniocangiano.com/2008/12/10/reflections-on-the-ruby-shootout/
>  
>  これ、外してビルドするとどんな問題が発生するのでしょう?

ext/tk/README.tcltklib に

|  *** ATTENTION ***
| When your Tcl/Tk libraries are compiled with "pthread support",
| Ruby/Tk may cause "Hang-up" or "Segmentation Fault" frequently.
| If you have such a trouble, please try to use the '--enable-pthread'
| option of the 'configure' command and re-compile Ruby sources.
| It may help you to avoid this trouble. The following configure
| options may be useful.
| 
|   --enable-tcl-thread/--disable-tcl-thread
|   --with-tclConfig-file=<path of 'tclConfig.sh'>
| 
| It is not need that 'tclConfig.sh' is a normal Tcl/Tk's tclConfig.sh.
| But the file is expected to include the line "TCL_THREADS=0" or "...=1".
| When no "TCL_THREADS=?" line, if Tcl version is 7.x or 8.0 which is
| given by "TCL_MAJOR_VERSION=?" line and "TCL_MINOR_VERSION=?" line,
| then --disable-tcl-thread is expected. Else, ignore the 'tclConfig.sh'.
| If --enable-tcl-thread or --disable-tcl-thread option is given, then
| --with-tclConfig-file option is ignored.

と書いてあるので、少なくともRuby/Tkを使うときに問題が起きるのでは
ないでしょうか。


-- 
|ZnZ(ゼット エヌ ゼット)
|西山和広(Kazuhiro NISHIYAMA)