Improve Parsing Performance
Remove findRemainingTypes()
function loadIfcFileItems(ifcData) {
const ifcItems = readIfcItems(ifcData);
// findRemainingTypes(ifcItems);
return loadItems(ifcItems);
}Check isArray once
function bindElements(finder, type, relating, related, property) {
const relations = finder.findByType(type);
if (Object.keys(relations).length === 0) return;
const _isArray = isArray(Object.keys(relations)[0]);
Object.values(relations).forEach((relation) => {
return _isArray
? bindMultiple(relation, relating, related, property)
: bindSingle(relation, relating, related, property);
});
}getName once
Const instead of var
Last updated