• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2007, Vol. 29 ›› Issue (12): 151-153.

• 论文 • 上一篇    

利用缓冲区提高Java应用程序的I/O性能

秦振吉 李枝青   

  • 出版日期:2007-12-01 发布日期:2010-05-30

  • Online:2007-12-01 Published:2010-05-30

摘要:

Java语言的跨平台特性使得其在各个领域得到了广泛应用。与此同时,Java应用程序的性能,特别是I/O性能,也是人们普遍关注的话题。本文采用一个生物信息学应用程序的实例来探讨如何利用I/O缓冲区提高Java应用程序的I/O性能。我们采用三种不同的I/O缓冲区的实现方式来实现该应用程序,对其进行性能分析比较并将其与相应的C++应用程序进行比较。大量实验表明,I/O缓冲区对于Java应用程序的I/O性能起着至关重要的作用。恰当地使用I/O缓冲区,某些场合下能使Java应用程序的I/O性能略高高于相应的C++应用程序的I/O性能。

关键词: 缓冲区 输入输出 性能 基因序列搜索

Abstract:

The cross-platform feature of the Java language enables Java to be widely used in many areas. Meanwhile,the performance of Java applications, especial ly the I/O performance, is also a hot topic. In this paper, a bioinformatics applica- tion is used as an example to demonstrate how to use the I/O buffer to improve the I/O performance of Java applications. The authors use three different ways'of using the 1/0 buffer to implement the bioirfformatics ap pplication. The comparison a- mong the performances of the three different implementations is discussed. And the authors also compare the performances o f the three implementations with that of the corresponding C++ application. Many experiments show that the I/O buffer has h remarkable effect on the I  I/O performance of Java applications. By using I/O buffers appropriately, the I/O perform- ance of Java applications can be higher than that of the C+ + applications in some cases.

Key words: buffer, I/0, performance, Motif search