From 190fa2ffac6fed58e29238af2de4742a629aba89 Mon Sep 17 00:00:00 2001 From: Luc Mcgrady Date: Mon, 4 Aug 2025 15:54:06 +0100 Subject: [PATCH] parallellify --- rslib/src/deckconfig/service.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rslib/src/deckconfig/service.rs b/rslib/src/deckconfig/service.rs index b2d2ccdda..11c4288d3 100644 --- a/rslib/src/deckconfig/service.rs +++ b/rslib/src/deckconfig/service.rs @@ -3,6 +3,8 @@ use std::collections::HashMap; use anki_proto::generic; +use rayon::iter::IntoParallelIterator; +use rayon::iter::ParallelIterator; use crate::collection::Collection; use crate::deckconfig::DeckConfSchema11; @@ -124,6 +126,7 @@ impl crate::services::DeckConfigService for Collection { .collect::>(); let costs = (70u32..=99u32) + .into_par_iter() .map(|dr| { Ok(( dr,