|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
因为各系统的API不同,代码调用API编写程序就会遇到很多不兼容的地方,比如Java改写后的Serv-U就不能在手机上执行,手机的游戏也不能直接在微机上执行。程序|技能|功能比来花了良多工夫研讨.net功能提拔成绩,在ms的网站上也找到良多不错的材料,上面这些内容估量人人或多或少的用过一些,在这里贴出来,但愿能对人人的事情有所匡助。
PerformanceTipsforAllApplications:
ThrowFewerExceptions
MakeChunkyCalls
DesignwithValueTypes
UseAddRangetoAddGroups
TrimYourWorkingSet
UseForLoopsforStringIteration―version1
UseStringBuilderforComplexStringManipulation
PrecompileWindowsFormsApplications
UseJaggedArrays―Version1
KeepIOBufferSizeBetween4KBand8KB
BeontheLookoutforAsynchronousIOOpportunities
PerformanceTipsforASP.NETApplications
CacheAggressively
UseSessionStateOnlyIfYouNeedTo
UseViewStateOnlyIfYouNeedTo
AvoidSTACOM
BatchCompile
RemoveUnnecessaryHttpModules
AvoidtheAutoeventwireupFeature
EncodeUsingASCIIWhenYouDontNeedUTF
UsetheOptimalAuthenticationProcedure
Appendix:CostofVirtualCallsandAllocations
CallType#Calls/sec
ValueTypeNon-VirtualCall809971805.600
ClassNon-VirtualCall268478412.546
ClassVirtualCall109117738.369
ValueTypeVirtual(ObjMethod)Call3004286.205
ValueTypeVirtual(OverriddenObjMethod)Call2917140.844
LoadTypebyNewing(Non-Static)1434.720
LoadTypebyNewing(VirtualMethods)1369.863
More:http://msdn.microsoft.com/library/en-us/dnpag/html/scalenet.asp?frame=true
出处:有气质的熊(minbear)BLOG
那做企业软件是不是最好用J2EE? |
|