Revert "perf(core): reuse aligned snapshots in universe scan"
This reverts commit 096115bd94.
This commit is contained in:
@@ -8889,16 +8889,16 @@ impl PlatformExprStrategy {
|
||||
if ctx.has_dynamic_universe() && !ctx.dynamic_universe_contains(&factor.symbol) {
|
||||
continue;
|
||||
}
|
||||
let snapshots = ctx.data.symbol_snapshots_by_id(date, symbol_id);
|
||||
let synthetic_candidate;
|
||||
let candidate = if let Some(candidate) = snapshots.candidate {
|
||||
candidate
|
||||
} else {
|
||||
synthetic_candidate =
|
||||
crate::data::missing_candidate_risk_state(date, &factor.symbol);
|
||||
&synthetic_candidate
|
||||
};
|
||||
let Some(market) = snapshots.market else {
|
||||
let candidate =
|
||||
if let Some(candidate) = ctx.data.candidate_by_symbol_id(date, symbol_id) {
|
||||
candidate
|
||||
} else {
|
||||
synthetic_candidate =
|
||||
crate::data::missing_candidate_risk_state(date, &factor.symbol);
|
||||
&synthetic_candidate
|
||||
};
|
||||
let Some(market) = ctx.data.market_by_symbol_id(date, symbol_id) else {
|
||||
continue;
|
||||
};
|
||||
let (reject_from_universe, selection_decision) = if collect_risk_decisions {
|
||||
|
||||
Reference in New Issue
Block a user