Highlighted
New Member.
2186 views

Performance decrease with Visual COBOL 2.0 v. Native COBOL

We are converting a large admin system to managed Visual COBOL 2.0 from native Net Express 5.0 and have noticed a significant performance decrease in our batch processes. Running the same process on the same PC with the same data, Visual COBOL appears to be up to 4.5 times slower than the natively compiled code. I read in one post that a configuration setting to license manager solved the problem and in a prior incident report switching from comp-3 to comp-2 was a work-around. Are there any performance tuning tips you can send my way?

0 Likes
5 Replies
Highlighted
Absent Member.
Absent Member.

RE: Performance decrease with Visual COBOL 2.0 v. Native COBOL

Hi Noj, do you have any details of where the degradation lies? Are you doing a lot of file handling or database access?

0 Likes
Highlighted
New Member.

RE: Performance decrease with Visual COBOL 2.0 v. Native COBOL

It appears to be in some modules that perform interest rate calculations and related math. The time difference is not large...a few seconds per policy but it adds up when we're processing thousands of policies. Some of the modules are called over a hundred times. In native code this area of the code may take a second whereas in managed code it's taking maybe 3 seconds.

0 Likes
Highlighted
New Member.

RE: Performance decrease with Visual COBOL 2.0 v. Native COBOL

There may be some file access but no database access at this level.

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Performance decrease with Visual COBOL 2.0 v. Native COBOL

In managed COBOL, you may get significantly better performance by using native (CLR or JVM) types to perform calculations, rather than items defined with COBOL PIC clauses. So try doing your calculations in temporary items declared as binary-long or whatever is appropriate, then move the final result to an item with the appropriate PIC clause.

The topic "COBOL Type Compatibility with Other Managed Languages" in the Visual COBOL documentation describes the native types available for managed COBOL programs.

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Performance decrease with Visual COBOL 2.0 v. Native COBOL

Hi Noj, thanks for the information so far - the support team tell me they have an incident open for this which we're looking into now.

If you can provide us a small cutdown we can advise on interim workarounds.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.