[K3d][K3a][K4] Merge: 2D-Zeichnungen im Kern (plan/drawings.rs), Kataster 150k Linien 2.5 s → 1.0 s
Chargen-Test mit 60-s-Zeitlimit (lief unter Last in die 5-s-Vorgabe). Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
42 files changed
+1950
-1582
No files matched your search
+12
-3
@@ -43,10 +43,17 @@ export type QueryName =
|
||||
| "planDomains"
|
||||
| "ifcExportData"
|
||||
| "meshExportData"
|
||||
| "modelJson"
|
||||
| "groupMembership"
|
||||
| "containingGroup"
|
||||
| "expandToGroups";
|
||||
| "expandToGroups"
|
||||
| "drawingUnderlay"
|
||||
| "drawingLines"
|
||||
| "drawingPrims"
|
||||
| "levelMarkers"
|
||||
| "modelJson";
|
||||
|
||||
/** Ab so vielen Ops öffnet `sync` das Dokument neu, statt sie einzeln anzuwenden. */
|
||||
const SYNC_REOPEN_OPS = 2000;
|
||||
|
||||
export class ProjectDocument {
|
||||
private handle = 0;
|
||||
@@ -86,7 +93,9 @@ export class ProjectDocument {
|
||||
}
|
||||
this.mirror = next;
|
||||
if (ops.length === 0) return;
|
||||
if (!this.handle) {
|
||||
// Ganz anderes Projekt (Tests, Laden): neu öffnen statt Tausender Einzel-Ops — das Entfernen
|
||||
// vieler Elemente einzeln wäre quadratisch (Kataster-Importe mit 10⁵ Zeichnungen).
|
||||
if (!this.handle || ops.length > SYNC_REOPEN_OPS) {
|
||||
this.reopen(next);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user