[327] Gebäudevolumen schneller: übereinander liegende Geschoss-Körper summiert statt vereinigt
check / check (push) Canceled after 0s
check / licenses (push) Canceled after 0s
check / e2e (push) Canceled after 0s
macos / native (push) Canceled after 0s

This commit is contained in:
Claude committed 2026-11-24 08:46:27 +00:00
1 parent e07ccc3ad1
commit d6ccb04e23
3 files changed
+81 -17

No files matched your search

+6 -1
View File
@@ -125,7 +125,7 @@ fn bench159() {
// 21. Juni, 10 Uhr UTC (Sonnenstudie, [142]).
let sun = Some(1_782_036_000_000.0);
let floors: Vec<String> = p.drawing_levels.iter().filter(|l| l.kind == crate::model::DrawingLevelKind::Floor && l.layout_id.is_none()).map(|l| l.id.clone()).collect();
// `BENCH_ONLY=elevation|section|3d`: nur dieser Teil, einmal (für `valgrind --tool=callgrind`).
// `BENCH_ONLY=elevation|elevation-shadow|section|3d|ifc`: nur dieser Teil, einmal (für `valgrind --tool=callgrind`).
if let Ok(only) = std::env::var("BENCH_ONLY") {
for l in p.drawing_levels.iter().filter(|l| l.line_points.is_some() && l.layout_id.is_none()) {
let text = serde_json::json!({ "level": serde_json::to_value(l).unwrap() }).to_string();
@@ -139,6 +139,11 @@ fn bench159() {
}
println!("{}: {:.1} ms", l.id, ms(t));
}
if only == "ifc" {
let t = Instant::now();
let n = crate::queries::run_bin(&p, "ifcExportData", &[0.0, 0.0, 0.0, 0.0], "").unwrap().len();
println!("ifcExportData: {:.1} ms ({n} Bytes)", ms(t));
}
if only == "3d" {
let t = Instant::now();
crate::queries::run(&p, "model3dParts", &[1.0, 2.0, 0.0, 0.0, 0.0], "").unwrap();