Closed evildarkarchon closed 10 months ago
After further inspection, I accidentally removed the header at some point, it wasn't missing before I started tinkering :(
Database size is 429MB (it would be about half that without the index). Without the index it would take ~25 seconds and searching the text files took more than a minute (with fewer logs). The good news is that the database files compress very well.
Forgot to mention, the reason the DB in the screenshot is so big is that I've added my whole load order and a select few other mods in there as well. The source text file was a little bigger than the vanilla one.
Here's a version of the screenshot with just the vanilla form-ids.
Did another "benchmark" using my old crash log archive (over 500 logs), and here are the results with the SQLite DB and FID lookup turned on. This is about the amount of time it took for me to do a log scan before I did my regex thing back in the CLAS days.
The database(s) are now optional. If it doesn't find the game's formid database, it will use the old method of looking up formids. I also made it so that there will be a database per game since it's the easiest way to ensure that we aren't making queries against a non-existent table. Plus, there's less data to sift through to find what we're looking for.
Superseded by #76
Using an SQLite database to make FormID Lookups much faster, with my ~250MB database, I went from 60 seconds with just 29 logs down to about 17 seconds. The standard DB should be even faster. You will have to generate the DB yourself because the database is too large for GitHub without using Git LFS. There is a script to generate the DB in the new CLASSIC Tools directory. I also have it prepped and ready to go for Skyrim support. This PR includes the changes from #74.