From: Hiroshi I. <ig...@ru...> - 2002-11-28 15:31:48
|
いがらしです。 At Wed, 27 Nov 2002 01:23:19 +0900, Masao Mutoh <mu...@hi...> wrote: > > むとうです。 > > gtk/src/rbgdkkeysyms/*[ch]が使われてなかったことに > 今更気づいたので、どうにかしようと思ったのですが、 > ちょっと疑問点が....。 gtk.soにリンクはされているものの、Init_gtk_gdkkeysyms() が呼ばれていないですね。いつの間に。 > これって、src/rbgdkkeysyms/というサブディレクトリを > 掘ってさらに100行ずつに分割してるのは何か理由がある > のでしょうか? 確か、最適化オプションつきでコンパイルすると異常に 時間がかかるという理由からだったと思います。 # gccだと関数のサイズのO(n^2)のコンパイル時間が # かかるという話をどこかで見たような気が... > 特に理由が無いようであれば他の.c/.hファイルと同様に > src/直下にファイルを.c/.hファイルを1つだけ作るように > 変更したいと思います。 まあ分割するのはきれいなやり方ではないですよね。 Init_gtk_gdkkeysyms() だけプラグマで最適化を抑制 できたりして、関数分割しなくてもコンパイル時間を 短くできないですかね? 実際に調べてはいないですが。 当時はP5-150MHzで作業してたので結構効いたのですが 今時のマシンならさほど差はないかも。 > それから、各定数がGdkの定数となっていたのですが、 > Gdk::KeyValの定数としたいと思います。 賛成です。Gdk.constantsがすっきりします。 -- 五十嵐 宏 (Hiroshi IGARASHI) |