Home > Erlang探索 > R13B04在细化Binary heap

R13B04在细化Binary heap

January 14th, 2010

原创文章,转载请注明: 转载自系统技术非业余研究

本文链接地址: R13B04在细化Binary heap

从github otp的更新日志可以清楚的看到otp R13B04在binary heap的细化上做了很多工作:

1. 提供参数 限制binary的最小limit.

2. binary_to_term 加多参数来保证安全, 对于外来binary解码的安全性检查 比如说 避免atom的滥用.

3. 更高效率的处理binary fragment.

4. 加强GC对binary碎片的回收操作.

这个对于服务器性能很大帮助.

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

Categories: Erlang探索 Tags: , ,
  1. January 18th, 2010 at 15:08 | #1

    OTP-8370 The default settings for garbage collection of binaries has been
    adjusted to be less aggressive than in R13B03. It is now also
    possible configure the settings for binary GC. See the
    documentation for spawn_opt/2-5, erlang:system_info/1,
    erlang:system_flag/2, process_flag/2-3, erlang:trace/3, and the
    documenation for erl for the new command line options +hms and
    +hmbs.

  2. January 18th, 2010 at 15:10 | #2

    Documentation for the new beam start arguments:
    +hms Size, Default minimum heap size for processes.
    +hmbs Size, Default minimum binary virtual heap size.

Comments are closed.