Skip to content

Commit

Permalink
perf: parallelise render process
Browse files Browse the repository at this point in the history
  • Loading branch information
delan committed Oct 7, 2024
1 parent 011a19e commit ce20c15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/command/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::{

use chrono::{SecondsFormat, Utc};
use jane_eyre::eyre::{self, bail, OptionExt};
use rayon::iter::{IntoParallelIterator, ParallelIterator};
use tracing::{debug, info};

use crate::{
Expand Down Expand Up @@ -104,8 +105,7 @@ pub fn render<'posts>(post_paths: Vec<PostsPath>) -> eyre::Result<()> {
}

let results = post_paths
// TODO: .into_par_iter()
.into_iter()
.into_par_iter()
.map(render_single_post)
.collect::<Vec<_>>();

Expand Down

0 comments on commit ce20c15

Please sign in to comment.