• Consider for example usage of the thread safe StringBuffer.

    举例来说,考虑一下线程安全StringBuffer用法

    youdao

  • For comparison, Table 2 includes times for String and StringBuffer.

    为了比较2还包含StringStringBuffer时间

    youdao

  • The first step here is to add a new member variable, a StringBuffer called elementContent.

    这里一步添加新的成员变量,即一个名为elementcontent的StringBuffer

    youdao

  • The familiar advice is; use StringBuffer instead of a String if you are going to be mutating it.

    类似建议如果希望字符串可变的,就应该使用StringBuffer

    youdao

  • Figure 4 shows a dramatic difference between Rope and StringBuffer that was not apparent in Figure 3.

    4显示了图3太明显RopeStringBuffer之间的巨大区别。

    youdao

  • So far, I've relied on graphs to illustrate the performance differences among Rope, String, and StringBuffer.

    迄今为止,已经图表展示RopeStringStringBuffer之间性能差异

    youdao

  • String is immutable and if we are doing work that requires mutations, StringBuffer is a less costly alternative.

    String不可变的,但如果我们工作需要字符串有很多变化,StringBuffer将是一个开销较低的选择

    youdao

  • Based on the results, an accurate estimate for this particular StringBuffer implementation is somewhere around 1.5.

    根据这些结果,可以准确估算出这个StringBuffer实现大约在1.5左右。

    youdao

  • If the binding corresponds to a variable, it creates a StringBuffer containing the variable's name, a colon, and its type.

    如果绑定变量对应,贡献器会创建一个包含该变量冒号类型StringBuffer

    youdao

  • Figure 4 takes String out of the equation and rescales the chart to show more clearly how Rope and StringBuffer performance compare.

    4比较撤出 String结果,调整图表的比例,清楚地显示RopeStringBuffer性能对比

    youdao

  • However, there is a performance penalty here, since a StringBuffer must work to transparently increase its size and shift the data around.

    不过此处性能损失因为StringBuffer必须透明地增加大小数据移位

    youdao

  • To create the concatenated string "users.brian.accessRights", the compiler will create a temporary StringBuffer object, call StringBuffer.append

    创建串联的字符串users.brian.accessRights” ,编译器创建临时StringBuffer对象调用 StringBuffer.append 三次,然后调用 StringBuffer.toString ,这意味着至少两个对象的创建和几个方法调用。

    youdao

  • In part one of this article we used a single threaded benchmark to compare the performance of the synchronized StringBuffer to the unsynchronized StringBuilder.

    本文一部分中,我们通过一个单一线程的基准比较同步StringBuffer和非同步的StringBuilder之间性能

    youdao

  • If the IBinding is an IFunction, the contributor forms a StringBuffer containing the function's name and parameters — separated by commas and surrounded by parentheses.

    如果IBindingIFunction,贡献器会构造包含函数参数(逗号隔离并用圆括号括住)的StringBuffer

    youdao

  • You can sometimes further improve performance by setting the initial capacity of a StringBuffer; the class is designed to automatically grow when it can no longer hold all its data.

    有时可以通过设置StringBuffer初始容量进一步提高性能该类设计使可以在不能保存全部数据自动扩大容量。

    youdao

  • 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相同的水平。

    youdao

  • 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相同的水平。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定