EDIFileJoiner – Setting Read/Write Buffers
EDIFileJoiner is a high-speed multithreaded X12 EDI File combiner. It reads and writes data at the concurrently. This means that strings only stay in memory for a short time reducing overall memory load in applications. This also has the added benefit of being able to combine larger EDI files.
EDIFileJoiner does not read EDI files one line at a time. By default EDIFileJoiner reads data 4096 bytes at a time. This reduces total IO operations and increase the speed of the overall joining process.
EDIFileJoiner also does not write to the output EDI files one line at a time. By default it uses a buffer of 4096 bytes. When the buffer is full it then writes the data to the output EDI files. This again reduces the total IO operations.
These default settings can be changed to suit specific scenarios.