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 4: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 5:04 AM

cable007 wrote Sep 11, 2011 at 6: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 6:46 PM

wrote Oct 2, 2011 at 9:39 AM

wrote Feb 12, 2013 at 11:44 PM

wrote Oct 24, 2014 at 12:56 PM

joergteichmann wrote Oct 25, 2014 at 10: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!