We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f3a036 commit e636dd5Copy full SHA for e636dd5
src/render/function.rs
@@ -144,6 +144,12 @@ pub fn render(
144
.unwrap_or(threads)
145
.clamp(1, num_cpus::get());
146
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
+
153
let mut line_num: u32 = 0;
154
let mut longest_line_chars = 0;
155
let mut background = None;
0 commit comments