Do not memoize pure functions by default

This commit is contained in:
Justin Ethier 2021-08-05 14:52:35 -04:00
parent 677ccb6789
commit 3cc79395fa
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@
Features
- Initiate major garbage collections faster after allocating a huge object (larger than 500K). This allows the system to reclaim the memory faster and keep overall memory usage low for certain workloads.
- Cyclone will no longer memoize pure functions by default.
Bug Fixes

View file

@ -25,7 +25,7 @@
(define *fe:batch-compile* #t) ;; Batch compilation. TODO: default to false or true??
(define *optimization-level* 2) ;; Default level
(define *optimize:memoize-pure-functions* #t) ;; Memoize pure funcs by default
(define *optimize:memoize-pure-functions* #f) ;; Memoize pure function
(define *optimize:beta-expand-threshold* #f) ;; BE threshold or #f to use default
(define *optimize:inline-unsafe* #f) ;; Inline primitives even if generated code may be unsafe
(define *cgen:track-call-history* #t)