Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Parse StringTree nodes on-the-fly #109
The GedcomParser still loads the entire file into memory before parsing it into the object model - it used to do it twice: once into an ArrayList, which was loaded into a StringTree hierarchy, which was then parsed into the object model. The ArrayList was removed recently, but the entire file is still loaded into the StringTree object...which is really unnecessary. Each 0-level item can be parsed as a root-level node as soon as the next 0-level item is encountered, and once it's parsed, it can be discarded (and garbage collected!), which should save memory and be faster.