Repository navigation
Speed up nested custom-curve previews - #324
Merged
Merged
Conversation
Batch historical observation windows on the authorized preview connection and reuse the validated native mapping index. Derive immutable recipe identities once and validate their contents in each compilation context. Select the interactive sample-reference budget through versioned process settings and retain the existing allowance for valuation replay. Signed-off-by: zerodrift <zerodrift@users.noreply.github.com>
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.
Nested custom-curve previews repeated the same database reads and declaration hashing across sample dates, output points and shared ancestors. This change collects the required historical windows in one authorized read when they fit the existing reader bounds, reuses validated native contract mappings and derives each immutable declaration’s identity once. Each sample still applies its own correction and expiry rules. Exact close and publication pins keep their existing authorization path.
Measured performance
Warm median HTTP times on loopback for 76 delivery periods in a synthetic 3,031-contract market. Each build had one warm-up and three timed requests per workload.
The 12-contract, 20-date regression fixture dropped from 20 historical observation queries to one per preview. All six scaled workloads returned matching displayed rows, dated contract IDs and exact input prices. The timings cover the authenticated API request through JSON decoding. Browser rendering and production latency were outside the measurement. Workload, timing ranges and allocation results.
Configuration and verification
Version 2 process limits require an explicit
previewRecipeSampleReferenceswithin the versioned engine allowance. Existing version 1 configurations and retained valuation and risk replay keep their existing allowance.