From a84c0f57b5efde85c195cbc706715bf4a4116018 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Mon, 15 Mar 2021 02:39:41 +0200 Subject: cleanup and optimizations. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit · No longer rewinding a stream being split, just to skip half through it again, which was not only stupid, but inneficient. · No longer using "index" anywhere when working with lists, lest we get accused of not actually doing lists. Signed-off-by: Gediminas Jakutis --- src/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index f4990ac..905da11 100644 --- a/src/main.c +++ b/src/main.c @@ -72,6 +72,7 @@ int main(int argc, char **argv) switch (settings.opmode) { case mode_fetch: + stream_skip(&file_in); stream_shallow_copy(&file_in, &file_tmp); if (settings.format == array) { try_s((ret = cache_block_copy(&file_in, &file_tmp)), out); -- cgit v1.2.3