Aug 182008
 

EmacsのLisp処理にもガベッジコレクションという考えがありまして、その閾値はデフォルトで400,000バイトという値になっています。
この値を大きくすると、GCの頻度が減って、実行速度が向上する場合があります。増やしすぎても良くないとは思いますが。

とりあえず私は4MBの設定になるよう、以下を.emacs.elに書いてます。

(setq gc-cons-threshold 4194304)

参考:
Garbage Collection – GNU Emacs Lisp Reference Manual

 Posted by at 2:37 pm  Tagged with:

Sorry, the comment form is closed at this time.