StringBuffer造句怎么写
- 造句
- 关注:2.61W次
However, there is a performance penalty here, since a StringBuffer must work to transparently increase its size and shift the data around.
对String和StringBuffer来说,完成测评所需要的时间随着计划长度的增加呈指数级增长。
为创建串联的字符串 “ssRights” ,编译器将创建一个临时的StringBuffer对象,调用StringBuffernd 三次,然后调用StringBufferring ,这意味着至少两个对象的创建和几个方法调用。
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的用法。
明确了这个基准测试的单线程化的本质后,我期待着逸出分析会消除锁,从而将StringBuffer的*能提到了与StringBuilder相同的水平。
标签:
StringBuffer 造句
- 文章版权属于文章作者所有,转载请注明 https://zhongwengu.com/sentence/wj0oyo.html