forked from eXist-db/exist
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Paged - s/RandomAccessFile/MappedByteBuffer/g
This is a VERY quick hack to test whether we get performance by mapping paged files instead of using an RAF; we do, so it stays for now, but there are a lot of questions. Does write() even work correctly yet ? An alternative may be to use the org.apache.pdfbox.io.RandomAccessFile as a drop in replacement offering potential performance gain. But yes, goes from about 7.7s to about 7.2s, and profiles agree that the big CPU hogs have disappeared.
- Loading branch information
1 parent
f83a693
commit 5e5d062
Showing
1 changed file
with
79 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters