imsweb/x12-parser

Speed of findLoop is too slow

Opened this issue · 1 comments

A single 837 bill takes about 5 seconds to parse, 200 bills take about 6 minutes. Maybe using a tree map or different data structure to store loops would help. This is a nice library, but at its current speed is unusable for any production scenarios.

public List<Loop> findLoop(String id) {

This is only the case during JUnit testing. Running the library on Tomcat, a 200 bill file only took a second or two. I'm not really sure why JUnit runs it so slowly, might have something to do with the heap, but I wouldn't consider this to be a problem. Great library guys.