forked from s-expressionists/Eclector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better CST result for inputs like (0 . 0)
In such a cases, special casing helps to put the CST children into more suitable spots of the result CST. See source comments for details. Also improves runtime and consing: (time (loop repeat 400000 do (eclector.concrete-syntax-tree:read-from-string "((0 . 0) (0 . 0) (0 . 0) (0 . 0))"))) Before the change Evaluation took: 14.376 seconds of real time 14.366840 seconds of total run time (12.522099 user, 1.844741 system) [ Real times consist of 0.136 seconds GC time, and 14.240 seconds non-GC time. ] [ Run times consist of 0.139 seconds GC time, and 14.228 seconds non-GC time. ] 99.94% CPU 43,040,377,482 processor cycles 7,294,680,432 bytes consed After the change Evaluation took: 10.796 seconds of real time 10.787757 seconds of total run time (9.173336 user, 1.614421 system) [ Real times consist of 0.048 seconds GC time, and 10.748 seconds non-GC time. ] [ Run times consist of 0.046 seconds GC time, and 10.742 seconds non-GC time. ] 99.93% CPU 32,310,576,549 processor cycles 2,584,884,960 bytes consed
- Loading branch information
Showing
4 changed files
with
167 additions
and
33 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