I'm writing an email listner (inbox) using javamail and I would like to know if there is some method to increase the speed for saving attachments.
These are my tests:
- using a small buffer (2k/4k)
- using a big buffer (1mb)
- increasing of java heap memory of jvm
all the previous test have the same peformance, it takes approximatively 6/7 minutes to save an attachment (pdf) of 7mb.
can you suggest me some more performant method to increase the speed?