六月婷婷综合激情-六月婷婷综合-六月婷婷在线观看-六月婷婷在线-亚洲黄色在线网站-亚洲黄色在线观看网站

明輝手游網(wǎng)中心:是一個(gè)免費(fèi)提供流行視頻軟件教程、在線學(xué)習(xí)分享的學(xué)習(xí)平臺(tái)!

優(yōu)化VB.NET應(yīng)用程序的性能(1)

[摘要]1) 整數(shù)除法運(yùn)算符 \ 和 / \ 比 / 快10倍 (如果是整數(shù)除法并且不需要保留小數(shù)) (2) 賦值運(yùn)算符 a +=b 和 a = a+b += 快 (3) 串聯(lián)運(yùn)算符 & 和 + 用 & 快 (來(lái)源:http://www.devcity...
1) 整數(shù)除法運(yùn)算符 \ 和 /
\ 比 / 快10倍 (如果是整數(shù)除法并且不需要保留小數(shù))

(2) 賦值運(yùn)算符 a +=b 和 a = a+b
+= 快

(3) 串聯(lián)運(yùn)算符 & 和 +
用 & 快

(來(lái)源:http://www.devcity.net/newsletter/archive/devcity/devcity20040315.htm#ni030)
.NET Pro: Optimize the Performance of VB.NET Applications
Operators

by Mike McIntyre

Division: \ V.S. /

Divide integral values with the \ (back slash) operator when you do not need decimal points or fractional values. The \ operator is the integral division operator and it is up to 10 times faster than the / (forward slash) operator.

Compound Assignment Operators: a += b V.S a = a + b

Compound assignment statements first perform an operation on an argument before assigning it to another argument. Example:

a += b

In the example above, b is added to the value of a, and that new value is then assigned to a. Compound assignment operators are more concise than their constituent operators (separate + and =). Compare the statement above to the one below. The statement above is a shorthand equivalent of the statement below.

a = a + b

Compound assignment operators are faster. If you are operating on an expression instead of a single variable, for example an array element, you can achieve a significant improvement with compound assignment operators.

Compound assignment operators for numbers:

^=
*=
/=
\=
+=
-=
Compound operator for strings: &= Example:

Dim a As String = "First " a &= "Name"
Result: First Name

Concatenation: & V.S. +

Use the & concatenation operator instead of the + operator to increase the speed of concatenations. Performance of the & and + operators are only equivalent if both operands are type String. If not, the + operator is late bound and must perform type checking and conversions.


主站蜘蛛池模板: 亚洲人成激情在线播放 | 日本大片网 | 侵犯希崎中文字幕在线 | 日日夜夜精品免费视频 | 色噜噜狠狠色综合免费视频 | 在线看污视频 | 日韩欧美在线综合网高清 | 亚色最新网址 | 色播激情五月 | 偷自视频视频区免费 | 午夜在线播放 | 欧美性猛交xxxx乱大交极品 | 天天操夜夜骑 | 四虎永久在线精品2022 | 最新国产精品亚洲 | 色视频综合| 日韩a级一片在线观看 | 四虎永久免费地址在线网站 | 亚洲成人精品在线 | 亚洲欧美综合一区二区三区四区 | 一二三中文乱码亚洲乱码 | 伊人网站在线 | 四虎网址在线观看 | 日韩三级一区二区三区 | 日本不卡视频在线视频观看 | 一本大道香蕉久97在线视频 | 日韩欧美福利视频 | 午夜色片| 婷婷在线免费视频 | 日韩不卡在线视频 | 依人在线视频 | 亚洲精品永久免费 | 青草免费观看 | 亚洲一区二区三区高清视频 | 亚洲产国偷v产偷v自拍色戒 | 伊人福利视频 | 一级片一级毛片 | 最新欧美伦禁片在线观看 | 色香蕉网 | 日韩一区二区三区免费 | 天堂网男人 |