[decompiler] performance improvements in extraction (#1309)

* small speedups to extractor

* faster extraction
This commit is contained in:
water111
2022-04-15 20:40:10 -04:00
committed by GitHub
parent 65de778b5c
commit 97dc0e14df
17 changed files with 183 additions and 70 deletions
+2 -5
View File
@@ -9,7 +9,6 @@
#include "common/util/read_iso_file.h"
void setup_global_decompiler_stuff(std::optional<std::filesystem::path> project_path_override) {
file_util::init_crc();
decompiler::init_opcode_info();
file_util::setup_project_path(project_path_override);
}
@@ -105,10 +104,8 @@ void decompile(std::filesystem::path jak1_input_files) {
// levels
{
extract_common(db, tex_db, "GAME.CGO");
for (auto& lev : config.levels_to_extract) {
extract_from_level(db, tex_db, lev, config.hacks, config.rip_levels);
}
extract_all_levels(db, tex_db, config.levels_to_extract, "GAME.CGO", config.hacks,
config.rip_levels);
}
}