• Consider for example usage of the thread safe StringBuffer.

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

    youdao

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

    为了比较,表2还包含了String和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中不太明显的Rope和StringBuffer之间的巨大区别。

    youdao

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

    迄今为止,已经用图表展示了Rope、String和StringBuffer之间的性能差异。

    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

  • 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.

    如果IBinding是一个IFunction,贡献器会构造一个包含该函数名和参数(由逗号隔离并用圆括号括住)的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

  • 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

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

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

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