Repository navigation
Index STEP import entities and read typed arguments without copies - #60
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #31.
Index STEP entities by type for model import; keep public StepFile.OfType compatible with edits during enumeration. Reuse repeated type names and parse typed arguments from lazy slices rather than materializing every argument string. GetRaw reuses a full source argument or an already-materialized string. Model import is still not streaming.
The included benchmark generates a 112.6 MiB synthetic STEP with a reachable 20,000-triangle mesh. Three alternating fresh-process runs on Windows/.NET 10.0.12 gave median import times of 1.740 s before and 1.072 s after, peak working sets of 431.3 MiB and 381.4 MiB, and allocated bytes of 921.8 MiB and 884.2 MiB. Both versions imported one element and 20,000 triangles. These are synthetic workload results.
Release tests: 305 passed, 2 skipped, no failures. Benchmark project builds without warnings.