forked from nikodemus/esrap
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Controls whether the rule should be compiled with caching. This can yield serious performance improvements. For example, the following (defrule uncached.1 #\a (:use-cache nil)) (defrule uncached.2 #\b (:use-cache nil)) (defrule uncached.3 (and (+ uncached.1) (+ uncached.2))) (let ((string (concatenate 'string (make-string 100000 :initial-element #\a) (make-string 100000 :initial-element #\b)))) (time (loop :repeat 100 :do (esrap:parse 'uncached.3 string)))) results in Evaluation took: 3.893 seconds of real time 3.896476 seconds of total run time (3.616506 user, 0.279970 system) [ Run times consist of 1.280 seconds GC time, and 2.617 seconds non-GC time. ] 100.08% CPU 11,653,119,545 processor cycles 3,841,530,688 bytes consed with :use-cache nil in both rules and Evaluation took: 8.006 seconds of real time 8.011514 seconds of total run time (7.443860 user, 0.567654 system) [ Run times consist of 3.499 seconds GC time, and 4.513 seconds non-GC time. ] 100.07% CPU 23,962,183,032 processor cycles 6,562,762,256 bytes consed with :use-cache t in both rules.
- Loading branch information
Showing
7 changed files
with
132 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters