文件名称:paixu
-
所属分类:
- 标签属性:
- 上传时间:2013-01-14
-
文件大小:4.12kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
Switch 可能转化成多种不同算法的代码。其中最常见的是跳转表和比较链/树。当switch用比较链的方式转化时,编译器会产生if-else-if的嵌套代码,并按照顺序进行比较,匹配时就跳转到满足条件的语句执行。所以可以对case的值依照发生的可能性进行排序,把最有可能的放在第一位,这样可以提高性能。-Switch could be transformed into a variety of different algorithm code. One of the most common is to jump the table and compare chain/tree. When the switch comparison chain transformation, the compiler will generate a nested if-else-if code, in order to compare and match Jump to meet the conditions of the statement is executed. So can the value of the case in accordance with the likelihood of sorting, most likely the first place, so you can improve performance.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
paixu.doc
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
