I need to persist some number very frequently - more than 1000 times a second.
I have tried :
- Properties.store that wraps FileOutputStream
- direct use of FileOutputStream
- Files.write
- RandomAccessFile
In all cases, I have kept the file descriptor open and just spilled data inside.
The results are an average of 500 actions per second (... and I need more than 1000 actions per second, my optimal goal is 10,000 actions per second)
What other options do I have?