perf: use lexical symbol ids for rank ties
This commit is contained in:
@@ -5093,6 +5093,15 @@ mod tests {
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
let lexical_symbols = ["000001.SZ", "000300.SH", "600000.SH"];
|
||||
let lexical_symbol_ids = lexical_symbols.map(|symbol| data.symbol_id(symbol).unwrap());
|
||||
assert!(
|
||||
lexical_symbol_ids
|
||||
.windows(2)
|
||||
.all(|window| window[0] < window[1]),
|
||||
"symbol ids are the stable lexical tie-break key"
|
||||
);
|
||||
|
||||
for symbol in ["000001.SZ", "600000.SH"] {
|
||||
let symbol_id = data.symbol_id(symbol).unwrap();
|
||||
let day = data.daily_snapshot_view(date);
|
||||
|
||||
Reference in New Issue
Block a user