1. 程式人生 > >系統技術非業餘研究 » Erlang 17.5引入+hpds命令列控制程序預設字典大小

系統技術非業餘研究 » Erlang 17.5引入+hpds命令列控制程序預設字典大小

Erlang 17.5釋出引入控制程序預設字典大小的命令列引數:

Erlang/OTP 17.5 has been released
Written by Henrik, 01 Apr 2015

Some highlights of the release are:
ERTS: Added command line argument option for setting the initial size of process dictionaries.

原始碼變化參看: https://github.com/erlang/otp/commit/c7a07bf984739bcc679d800e5383c01e1d07ffa5
文件:https://github.com/erlang/otp/commit/89987ada3c997fd9f1e1f8c8ed73da0394bda4ee

這個+hpds引數預設是字典有10個槽位,由於典型的Erlang VM內有成千上萬的程序,官方又不鼓勵使用字典,因為破壞fp語義,所以這些預設的字典佔用的記憶體是浪費掉了。 挑小了對於記憶體敏感的嵌入式機器還是挺可觀的;調大了對字典效能有一定的提升。

祝玩得開心!

Post Footer automatically generated by wp-posturl plugin for wordpress.