随笔分类 - erlang 高效
摘要:手把手教你做iOS推送http://www.cocoachina.com/industry/20130321/5862.html
阅读全文
摘要:使用rebar生成erlangrelease并进行热代码升级http://blog.sina.com.cn/s/blog_6530ad590100wmkn.html使用rebar工具开发erlang工程项目和发布erlang工程项目http://blog.sina.com.cn/s/blog_653...
阅读全文
摘要:转自:http://www.cnblogs.com/futuredo/archive/2012/10/26/2737644.htmlFunctions1 Pattern matching模式匹配Pattern matching in function head and incaseandreceiveclauses are optimized by the compiler. With a few exceptions, there is nothing to gain by rearranging clauses.函数头以及case和receive子句中的模式匹配是经过编译器优化的。重新整理
阅读全文
摘要:转自:http://www.cnblogs.com/futuredo/archive/2012/10/19/2727204.htmlConstructing and matching binariesErlang/OTP R15B02In R12B, the most natural way to write binary construction and matching is now significantly faster than in earlier releases.在R12B版本中,构造和匹配二进制数据最自然的方式,相比较之前的版本其效率有了明显提高。To construct a
阅读全文
摘要:转自:http://www.cnblogs.com/futuredo/archive/2012/10/17/2726416.htmlCommon Caveats(常见注意事项)Erlang/OTP R15B02 Here we list a few modules and BIFs to watch out for, and not only from a performance point of view. 这里我们列出了需要注意的一些模块和内置函数,不仅仅是从性能的角度来看。 1 The timer module 定时器模块 Creating timers usingerlang...
阅读全文
摘要:转自:http://www.cnblogs.com/futuredo/archive/2012/10/16/2725770.htmlThe Eight Myths of Erlang PerformanceErlang/OTP R15B021 Myth: Funs are slow Fun函数很慢(这里应该是指Module:Function(Arguments)这种形式的函数,其中M,F,A可以是变量类型,值不是固定的) Yes, funs used to be slow. Very slow. Slower thanapply/3. Originally, funs were imple..
阅读全文
摘要:转自:http://www.cnblogs.com/futuredo/archive/2012/10/22/2734186.htmlList handling1 Creating a list创建一个列表Lists can only be built starting from the end and attaching list elements at the beginning. If you use the++operator like this列表只能从尾端开始创建,从头部加入元素。如果你像这样使用++操作符List1 ++ List2you will create a new lis
阅读全文