mirror of
https://github.com/Magnus167/msyrs.git
synced 2025-11-19 20:16:10 +00:00
download IS slower than Go-lang
This commit is contained in:
@@ -83,11 +83,17 @@ impl JPMaQSDownload {
|
||||
assert!(all_jpmaq_expressions(expressions.clone()));
|
||||
let dqts_vec = self.get_expressions(expressions)?;
|
||||
|
||||
println!("Retrieved {} time series", dqts_vec.len());
|
||||
let start = std::time::Instant::now();
|
||||
let indicators = dqts_vec
|
||||
.iter()
|
||||
.flat_map(|dqts| dqts.get_timeseries_by_ticker())
|
||||
.map(|tsv| JPMaQSIndicator::new(tsv))
|
||||
.collect::<Result<Vec<JPMaQSIndicator>, Box<dyn Error>>>()?;
|
||||
println!(
|
||||
"Converted time series to indicators in {:?}",
|
||||
start.elapsed()
|
||||
);
|
||||
|
||||
Ok(indicators)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user