For the same RTF file, if I do a simple conversion to PDF (without any special options), I get a processing time of 318ms for the Java version, while I get more than 1000ms for the C++ version. Is this the expected behavior?
Time measured after a first conversion to exclude the time for loading the license and other aspects related to the start of the process and initialization of internal components
Linux Debian 11 / Java 23.12 : 318ms (production license)
Linux Debian 11 / C++ 22.12 : 1346ms (temporary license)
Linux Debian 12 / C++ 25.8 : 1165ms (temporary license)
The performance difference you are observing between Aspose.Words for Java and C++ during RTF to PDF conversion can be influenced by several factors, including the underlying implementation of the libraries, optimizations, and the specific environment in which they are running.
It is not uncommon for different programming languages or versions of a library to exhibit varying performance characteristics. The significant difference in processing times you noted (318ms for Java vs. over 1000ms for C++) may warrant further investigation. Factors such as the versions of the libraries, the system resources available, and any potential differences in how the libraries handle RTF files could all contribute to this discrepancy.
For performance optimization, consider the following approaches:
- Ensure you are using the latest versions of both Aspose.Words for Java and C++.
- Review the configuration settings and resource allocation for each environment.
- Test with different RTF files to see if the performance varies based on content complexity.
If you are looking for specific performance benchmarks or insights, I recommend checking the official documentation or forums for any known issues or performance tips related to the versions you are using.
While I cannot provide direct links, you can search for “Aspose.Words for Java Documentation” and “Aspose.Words for C++ Documentation” to find relevant resources that may offer insights into performance optimization and updates that could affect conversion times.
Thank you for your reply. We’ve already looked at possible optimizations, but generally speaking, do you know if the C++ version of Words is slower than the Java version?
We’re already using the Java version, but we’d like to know if the C++ version might be faster.
@brunod In general C++ version is slower then .NET, Java and Python versions of Aspose.Words. The main version of Aspose.Words is .NET version and code is written in C#. Then code is auto ported to Java and C++. Python version is produced as a wrapper of special build of .NET version. While autobooting to Java is more native since both .NET and Java uses similar concepts, porting code to C++ is harder and the resulting code might be not optimal. This might lead to worse performance in C++ version.