From b1248be1b8f926dc4b2727093af264fd9926669a Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 11 Sep 2025 19:10:05 +0200 Subject: [PATCH] wopts.disableWAL for 3x better write performance --- src/ifcparse/IfcFile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ifcparse/IfcFile.cpp b/src/ifcparse/IfcFile.cpp index b4be03a724..62b38baf35 100644 --- a/src/ifcparse/IfcFile.cpp +++ b/src/ifcparse/IfcFile.cpp @@ -452,6 +452,7 @@ namespace { IfcParse::impl::rocks_db_file_storage::rocks_db_file_storage(const std::string& filepath, IfcParse::IfcFile* ffile, bool readonly) : file(ffile) , db(init_db(filepath, readonly)) + // @todo streaming serializer does not populate the byguid map , byguid_internal_(db, "g|") , byguid_(&byguid_internal_, [this](size_t v) { return assert_existance(v, entityinstance_ref); }, [](IfcUtil::IfcBaseClass* v) { return v->identity(); }) , instance_ids_(db, "i|") @@ -461,7 +462,7 @@ IfcParse::impl::rocks_db_file_storage::rocks_db_file_storage(const std::string& // @todo by_identity is probably not correct here, this mapping is Name -> Identity, so Fn should have access to full pair? // , byidentity_(&byid_, [this](size_t v) { return assert_existance(v, by_identity); }, [](IfcUtil::IfcBaseClass* v) { return v->identity(); }) { - // wopts.disableWAL = true; + wopts.disableWAL = true; } IfcParse::impl::rocks_db_file_storage::~rocks_db_file_storage()