samhaswon / bible_search

A Python package for searching multiple versions of the Bible
GNU General Public License v3.0
2 stars 1 forks source link

Memory reduction #3

Closed samhaswon closed 7 months ago

samhaswon commented 7 months ago

Reduced the memory footprint of the module while also increasing performance.

New methods in the BibleSearch class allow the user to preload given versions at instantiation, single versions as needed, or all supported versions at once. Or just let the class handle the loading of versions.

Version indices are also now split, allowing for faster instantiation if only a limited set of versions is desired.