We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Java BarcodeReader performance issue


We are Everteam Company and we have already purchased aspose license.
We are facing performance issues when reading barcode from TIFF images.
The API used is “com.aspose.barcoderecognition.BarCodeReader”.

Here’s a sample :

File rep = new File(“D:/home/workspace_LMP/lmp/tmp”);
File[] directoryListing = rep.listFiles();
if(directoryListing != null){
for (File file : directoryListing) {
BarCodeReader reader = new BarCodeReader(file.getPath(),Long.valueOf(com.aspose.barcoderecognition.BarCodeReadType.Code39Standard));
System.out.println(“read ok”);
System.out.println("No Barcode found in the file ");

The test was done on 10 images (attached) using aspose-7.1.0 and aspose.17.03 , kindly find the results below.

Aspose.7.1.0 15.4 secTIFF_IMAGES.zip (2.5 MB)

Aspose.17.03 11.3 sec

Thank you in advance,


Can you please confirm to us if the 10 images you have added are unique? We found that the same image has been attached with different names. Also, please try using the latest version of Aspose.Barcode for Java 18.7 and let us know your feedback.


I confirm that the 10 images I have added are the same with different names.
I have tried multiple tests and the test you suggested, Kindly find below the results:

  1. JDK 1.7.0_51:
    a. aspose-barcode-7.1.0 : 23 seconds
    b. aspose-barcode-17.03 : 17 seconds
    c. aspose-barcode-18.6-jdk1.7 : 16 seconds

2. jdk1.8.0_181:
a. aspose-barcode-7.1.0 : 22 seconds
b. aspose-barcode-17.03 : 16 seconds
c. aspose-barcode-18.6-jdk1.7 : 17 seconds

As you can see we are still facing the same performance issues.
Note that we have already purchased the Aspose license.

Thank you for your help,


Following are our findings:

Aspose.Barcode for Java 17.3: 9 seconds
Aspose.Barcode for Java 18.7 = 22 seconds

These findings are with the following code sample:

BarCodeReader reader = new BarCodeReader("180956\\0c6cee559588bddc14e22d0a799c5a75e84e497b3cb0e6c389a429657520768d.tiff");
System.out.println(new Date());
	System.out.println("Read ok");
System.out.println(new Date());

This issue has been logged as BARCODEJAVA-536 for further investigation at our end. In our best effort, we will try to bring down this time to atleast equivalent to that of the version 17.3. We hope that will satisfy your requirements.

@kashif.iqbal ,

Thank you for your reply and action,
Can you please specify on how many Images was your test based on?
Because we see great difference between your results and ours, keeping in mind that all our tests were done on 10 Images.

Best Regards,


The tests were run on a single file but since we were able to reproduce the issue with even a single file, it has been reported. When we fix such issues, internal tests are run on multiple files to evaluate the output against the fix. It will be taken care of while investigating the issue.

1 Like