Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1.2
-
Fix Version/s: 3.0.0
-
Labels:
-
Environment:Mac osx 10.7, java version "1.6.0_29"
-
Patch Submitted:Yes
-
Number of attachments :
Description
A patch to great improve DiskJournal's performance.I used java.nio.channels.FileChannel to write log in batch with ByteBuffer,insteadof using java.io.RandomAccessFile.Also i have reduced the lock range in some codes,please check the pacth in attachment.
In my test,it could get about 2x improvement in performance.
You can patch it with "git apply use_nio_channel.patch" and to diff the codes.