shithub: pprolog

Download patch

ref: 43f65cbe02b3a2512c3a797862196d693b3a9f11
parent: 2bf351a2f4a0e364d137f50fc67e3eadbdf22e7e
author: Peter Mikkelsen <peter@pmikkelsen.com>
date: Thu Jul 22 18:36:36 EDT 2021

Garbage collect as the first thing in the repl loop.

This makes sure that the system doesn't appear slow after a potentially very
simple first query

--- a/repl.pl
+++ b/repl.pl
@@ -21,8 +21,8 @@
 	print_exception(E).
 
 repl_loop :-
-	catch(read_eval_print, E, print_exception(E)),
 	'$collect_garbage',
+	catch(read_eval_print, E, print_exception(E)),
 	repl_loop.
 
 read_eval_print :-