StringBuilder vs. String / Fast String Operations with .NET 2.0
2006-07-27 10:40
260 查看
对字符操作 比较 介绍比较详细的文章。
http://www.codeproject.com/KB/cs/StringBuilder_vs_String.aspx
http://www.codeproject.com/KB/cs/StringBuilder_vs_String.aspx
String Operation | [align=left][/align]Most Efficient |
---|---|
Insert | StringBuilder.Insert > 2 Insertion Strings String.Insert otherwise |
Remove | StringBuilder is faster > 2 characters to remove |
Replace | String.Replace always |
Format | String.Format < 5 Append + Format operations StringBuilder.AppendFormat > 5 calls |
Concatenation | + for 2 strings String.Join > 2 strings to concatenate |
相关文章推荐
- StringBuilder 对比 String / Fast String Operations with .NET 2.0
- Fast Pixel Operations in .NET (With and Without unsafe)
- ADO.NET 2.0 中的ConnectionStringBuilder
- How to build Multi-Language Web Sites with ASP.NET 2.0 and VS.Net 2005
- How to build Multi-Language Web Sites with ASP.NET 2.0 and VS.Net 2005
- Multiple language application with Asp.net 2.0
- Building a Web 2.0 Portal with ASP.NET 3.5
- Free ASP.NET 2.0 web hosting with SQL Server Express
- StringBuilder vs String concatenation in toString() in Java
- ASP.Net 2.0中使用新的WebForm_DoPostBackWithOptions函数取代常规以前所使用的__doPostback函数
- Sandcastle Help File Builder(.NET帮助文档工具)的版本选择心得——支持VS2010至VS2015,高版本项目文件问题
- 用VSCode开发一个asp.net core 2.0+angular 5项目(4): Angular5全局错误处理
- 在Asp.Net 2.0中应用DataFormatString
- 解读:FlowNet 2.0 evolution of optical flow estimation with deep networks
- AggregateCacheDependency、CacheDependency、SqlCacheDependency Asp.net 2.0和Sql Server的缓存管理和使用ObjectBuilder改造PetShop4 的缓存示例
- Developing ASP.NET Custom Control With C# Builder
- Business Intelligence: Using SQL 2008 Reporting Services and SQL Report Builder 2.0 with Log Parser
- vs.net发送邮件(2.0)
- ASP.NET CheckBoxList Operations with jQuery
- ASP.NET 2.0 - Web Site vs Web Application project