stringbuilder
- 网络字符串拼接
-
Maybe I want to use a StringBuilder to get better performance .
也许我想使用一个StringBuilder来获得更好的性能。
-
As can be seen , StringBuilder performance remained constant throughout exercise .
正如我们所看到的,StringBuilder的性能可以保持在一个不变的吞吐量水平上。
-
I also wanted to see if the optimizations would have any effect on StringBuilder performance .
我也想了解一下各种优化是否真的能够影响StringBuilder的性能。
-
Make sure you use a StringBuilder and not individual string objects that get concatenated .
确保使用StringBuilder,而不是把一些独立字符串对象连接在一起。
-
You can obviously just use a StringBuilder or something similar to create an XML string .
显然,您可以只使用一个StringBuilder来创建XML字符串。
-
The purpose of using the unsynchronized StringBuilder was to provide a baseline measurement of performance .
之所以使用非同步的StringBuilder,是为了提供一个测量性能的基线。
-
First off , creating a StringBuilder means copying the contents of the String , an O ( n ) operation .
但是,创建一个StringBuilder也就意味着拷贝String的内容,一个O(n)的操作。
-
Isn 't it time for some recycling , i.e.reusing the same global StringBuilder for every email received ?
这不是用于循环的时间吗,从新使用一个全局性的Stringbuilders为每一个收到的email?
-
In this shot the large frame in the upper right shows the disassembly of the timing wrapper method added to the StringBuilder class .
在这个快照中,右上角的大帧显示了添加到StringBuilder类中的计时包装器方法的分解。
-
StringBuilder ; one is immutable and changes to it cause the creation of a new copy , the other allows for in-place modification .
一个是不可变的,当需要修改的时候它会创建一个新的副本,而另一个则允许直接在其上进行修改。
-
Note the StringBuilder and the appending of data , used because a particular data element can be processed across multiple reads on the InputSource .
注意,使用StringBuilder和附加数据是因为一个特定数据在InputSource上能通过多个读取来进行处理。
-
Does it make sense to use ropes to compute the value of x , rather than a StringBuilder , which is what the compiler generates by default ?
用rope代替编译器默认生成的StringBuilder来计算x的值是否有意义?
-
Given the single threaded nature of this benchmark , I was fully expecting Escape Analysis to elide the lock thus rendering StringBuffer performance equivalent to that of StringBuilder .
明确了这个基准测试的单线程化的本质后,我期待着逸出分析会消除锁,从而将StringBuffer的性能提到了与StringBuilder相同的水平。