Skip to content

Commit e636dd5

Browse files
committed
single threaded render description
1 parent 7f3a036 commit e636dd5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/render/function.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ pub fn render(
144144
.unwrap_or(threads)
145145
.clamp(1, num_cpus::get());
146146
let (mut line_num, longest_line_chars, background) = if threads < 2 {
147+
// single-threaded rendering overview:
148+
//
149+
// Sqeuentially iterates over the contents of each file to render.
150+
// Each time rendering it's text to the correct location in the final image.
151+
// No intermediate images are used like in multi-threaded rendering.
152+
147153
let mut line_num: u32 = 0;
148154
let mut longest_line_chars = 0;
149155
let mut background = None;

0 commit comments

Comments
 (0)