This project is read-only.

Optimise Bible Object


It is a large overhead to load the entire bible xml in to memory. It would be preferential to use XPath to query the xml file without having it all cached.


cable007 wrote Sep 8, 2011 at 5:15 AM

Work has been started to do this. Now only the current book is loaded into a XmlDocument variable, which is then parsed to load verse text as requested. The old structures no longer keep or load verse text. This has helped to shrink memory usage already. The old functions in the Bible class need to be replaced to use this instead of the old structures.

wrote Sep 10, 2011 at 6:04 AM

cable007 wrote Sep 11, 2011 at 7:46 PM

The pertinent functions have now been replaced with the old ones commented out. Pushing further work on this (unless a major error occurs due to it) until after initial release.

wrote Sep 11, 2011 at 7:46 PM

wrote Oct 2, 2011 at 10:39 AM

wrote Feb 13, 2013 at 12:44 AM

wrote Oct 24, 2014 at 1:56 PM

joergteichmann wrote Oct 25, 2014 at 11:22 AM

Please see my comment on the next issue about how to deal with XPath to query zefania xml files without loading the entire book into memory!