Skip to content

Perf: spatial Query refactor + JSON serializer options#6

Merged
michaldengusiak merged 2 commits into
sow/2026-Q2from
feature/sam-performance-improvements
May 20, 2026
Merged

Perf: spatial Query refactor + JSON serializer options#6
michaldengusiak merged 2 commits into
sow/2026-Q2from
feature/sam-performance-improvements

Conversation

@michaldengusiak
Copy link
Copy Markdown

Summary

  • Spatial Query refactor (IntersectionDictionary, ViewField, VisibleLinkedFace3Ds) for faster intersection / visibility lookups
  • Centralised JSON serialization via SAM.Core.Convert.SerializerOptions (used by ToFile/File.cs and ToString/String.cs)
  • New SAM.Analytical/Query/Apertures.cs helper
  • Pinned System.Text.Json to 8.0.5

Test plan

  • Build SAM solution end-to-end
  • Downstream SAM_SolarCalculator + SAM_Tas builds green against this branch
  • Run workflow on a representative model and compare timing CSV vs sow/2026-Q2 baseline

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

Aligns the repo with the SAM-BIM workspace-wide pin to the LTS-aligned
System.Text.Json 8.0.5, replacing the previously pinned 10.0.8 preview.
…nvert.SerializerOptions

- ExportHydra.cs: switch JsonSerializerOptions to Core.Convert.SerializerOptions(Core.Formatting.Indented)
- Apertures.cs: new perf path (~80 lines added)
- IntersectionDictionary.cs / ViewField.cs / VisibleLinkedFace3Ds.cs: spatial-query perf improvements
- File.cs / String.cs: small Convert-namespace refactors
@michaldengusiak michaldengusiak merged commit 6fcf6fc into sow/2026-Q2 May 20, 2026
1 check passed
@michaldengusiak michaldengusiak deleted the feature/sam-performance-improvements branch May 20, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants