> using, e.g. (gc 250) instead, to pre-allocate memory. This avoids that
> the garbage collector runs again and again.

BTW, 'proc' is very useful here to check the process size:

$ pil +
: (proc 'pil)
  PID  PPID  STARTED  SIZE %CPU WCHAN  CMD
25575  1831 18:14:55  1512  0.3 -      /usr/bin/picolisp /usr/lib/picolisp/lib.l
-> T

: (gc 250)
-> 250

: (proc 'pil)
  PID  PPID  STARTED  SIZE %CPU WCHAN  CMD
25575  1831 18:14:55 258512 2.8 -      /usr/bin/picolisp /usr/lib/picolisp/lib.l
-> T
:

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to