From 8f877a7a8a2bb81caeed24256baea4b54032b750 Mon Sep 17 00:00:00 2001 From: sijanec Date: Thu, 21 Jan 2021 08:19:19 +0100 Subject: performance: garbage collection --- src/tape.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tape.c') diff --git a/src/tape.c b/src/tape.c index 0af7e4c..ecb83c5 100644 --- a/src/tape.c +++ b/src/tape.c @@ -101,6 +101,9 @@ int bvr_inline_command_processor(FILE * page_source_file, FILE * output_file, ch return FAILURE; } } + /* start collect garbage on success */ + bvr_var_remove_orphans(); + /* end collect garbage on success */ // copy_buffer[(ftell(page_source_file)% COPY_BUFFER_SIZE)] = fgetc(page_source_file); // remove closing command tag character return what_to_return; } -- cgit v1.2.3