Description
In SpoolingResultIterator.java, we have following code:
tempFile = File.createTempFile("ResultSpooler",".bin", new File(spoolDirectory)); DeferredFileOutputStream spoolTo = new DeferredFileOutputStream(size, tempFile) {
Basically we pre-create spill file even we don't reach memory threshold and later we delete the same file if it's not needed in finally block. We can remove these unnecessary file creation & deletion altogether.