Extrem bad Performance with large Cobol Copy Book
Editor for Fixed Width, Csv and Existing Xml files.
Status: Beta
Brought to you by:
bruce_a_martin
The import of a Cobol copybook takes 20 seconds on a high-end PC, Java is using one processor core in 100%. Using this defintion with a file, the same happens even with one record. After loading the file every interaction is very slow. You can find attached the the Cobol structure and some data.
Gyoergy Balint
Computer Center of State Austria
gyoergy.balint at
extern.brz.gv.at
Anonymous
I plan to do full rewrite of how
Layoutsare store (later this year ???). This rewrite will solve this problem.I will also look at some minor changes in the mean time.
I am assuming you are using the Windows version: In the RecordEditor/Utilities directory there is a
Cobol editor. You will find theCobol editorworks better for this copybook (and all copybooks where there are a large arrays). See attached picture. I would suggest using theCobol editorfor Single Record files with large arrays.Other versions of the RecordEditor have bat/shell script/java program to run the
Cobol editorNote for me: This is basically the same issue as reported in https://sourceforge.net/p/record-editor/discussion/467594
Last edit: Bruce Martin 2017-01-21
Diff:
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
For you info I made some profiling with mission control and I can tell you which of your statements are burning the CPU.
The first test was done on Windows, but for the "production" use a pure AIX installation is planned as the files are created by Cobol and PLI for AIX. For security and performance reasons files must not be moved off from the AIX box.
I would be interested to know which statements is burning cpu.
I am expecting it to be related to DB insert / expanding arrays but it would be good to get it confirmed.
Some background info when I started the Recordeditor I had no need for arrays
so did not include them. When I added Cobol I simply converted arrays to individual
fields. While this works it does not work well for large arrays.
What I plan to do is implement a more Cobol like Structure (including arrays).
This should reduce the Copybook-load for your problem copybook by 95% + but to
do this, I will need to:
This will tae a lot of time!!!
In the mean time some tweaks / change of backend might help.
I will do anothr release of the RecordEditor-Generic DB (where you vhoose the
backend DB.
If you can use the CobolEditor, it should work a lot faster
Last edit: Bruce Martin 2017-02-13
I made changes that significantly reduce the Copybook load time by using Batch Updates. On my computer the load time fropped from 180+ seconds to couple of seconds.
What I plan to do
Version 0.98.2 has been released:
By default the old slow code will be executed. But if you place
in the Param.Properties file, the new code will be executed. This file
will be in the RecordEditor/lib directory. On Windows (using HSQL installer) it will be in:
For linux when using the cross-plaform installer it will be in
I have attached an update Param.Properties
With version 0.90 supports editting with a Cobol Copybook. This should be much faster in this case.