File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
# async-file
2
2
3
+ [ ![ Maven central] ( https://img.shields.io/maven-central/v/io.github.kavahub/kavahub-async-file.svg )] ( https://search.maven.org/artifact/io.github.kavahub/kavahub-async-file )
4
+ [ ![ License] ( https://img.shields.io/github/license/kavahub/async-file )] ( https://img.shields.io/github/license/kavahub/async-file )
5
+
6
+
3
7
#### 介绍
4
8
框架提供Java异步读写文件工具,使用Java NIO 文件读写库。Java应用程序引入框架可以简单的,异步和非阻塞的读写文件。框架包含三个工具类:
5
9
@@ -306,12 +310,16 @@ Thread-7
306
310
- 在大多数情况下,使用Jdk提供的[ ` Files ` ] ( https://docs.oracle.com/javase/10/docs/api/java/nio/file/Files.html ) 或许更合适。
307
311
- 不要为了异步而异步,找到问题所在,也许解决问题的关键不是异步。
308
312
313
+ 建议使用优先级: ` Java NIO Files ` > ` NIOFileLineReader ` > ` AIOFileReader `
314
+
315
+ #### 性能
316
+
309
317
性能测试,参考 [ ` ReadLineBenchmark ` ] ( src/test/java/io/github/kavahub/file/performance/ReadLineBenchmark.java ) 。 其他开源项目文件读写的性能测试 [ ` ReadFileBenchmark ` ] ( https://gitee.com/yangyunjiao/learn-java/blob/master/core-java/core-java-io/src/main/java/net/learnjava/ReadFileBenchmark.java )
310
318
311
319
312
- 建议使用优先级: ` Java NIO Files ` > ` NIOFileLineReader ` > ` AIOFileReader `
320
+ #### 构建项目
321
+
313
322
314
- #### 如何参与开发
315
323
316
324
317
325
You can’t perform that action at this time.
0 commit comments