摘要:
转自: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子句中的模式匹配是经过编译器优化的。重新整理 阅读全文
posted @ 2013-12-12 21:21
宁静的天空
阅读(928)
评论(0)
推荐(0)
摘要:
转自: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 阅读全文
posted @ 2013-12-12 21:20
宁静的天空
阅读(949)
评论(0)
推荐(0)
摘要:
转自: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... 阅读全文
posted @ 2013-12-12 21:19
宁静的天空
阅读(389)
评论(0)
推荐(0)
摘要:
转自: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.. 阅读全文
posted @ 2013-12-12 21:18
宁静的天空
阅读(809)
评论(0)
推荐(0)
摘要:
转自: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 阅读全文
posted @ 2013-12-12 21:15
宁静的天空
阅读(459)
评论(0)
推荐(0)

浙公网安备 33010602011771号