I made an app that takes aproximately 5 secs to give the results I want. Using VisualVm i just noticed that 4 seconds are taken by the following code, for 69 files in total:
FileInputStream matriculeFile = null;
XSSFWorkbook matriculeWorkbook = null;
XSSFSheet matriculeSheet = null;
try {
matriculeFile = new FileInputStream(new File(
sheetsDirectory + "\\" + matricule + ".xlsm")); // Open matricule file
matriculeWorkbook = new XSSFWorkbook(matriculeFile);
matriculeSheet = matriculeWorkbook.getSheetAt(0);
}catch(Exception e){e.getStackTrace();}
My question is. Is there any other way to obtain the same results, saving time, such as using other methods?
Thanks in advance