1 |
commit: cbb62a2dd0c8a09c220b84832fb004977880050c |
2 |
Author: Petteri Räty <petsku <AT> petteriraty <DOT> eu> |
3 |
AuthorDate: Wed Apr 20 15:20:16 2011 +0000 |
4 |
Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 21 07:53:24 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/libbash.git;a=commit;h=cbb62a2d |
7 |
|
8 |
Parser: turn on memoize |
9 |
|
10 |
The massif and benchmark_parser make targets show that we benefit |
11 |
greatly from turning on memoization. |
12 |
|
13 |
--- |
14 |
bashast/bashast.g | 1 + |
15 |
1 files changed, 1 insertions(+), 0 deletions(-) |
16 |
|
17 |
diff --git a/bashast/bashast.g b/bashast/bashast.g |
18 |
index 21bbad4..f6e50b3 100644 |
19 |
--- a/bashast/bashast.g |
20 |
+++ b/bashast/bashast.g |
21 |
@@ -23,6 +23,7 @@ options |
22 |
output = AST; |
23 |
language = Java; |
24 |
ASTLabelType = CommonTree; |
25 |
+ memoize = true; |
26 |
} |
27 |
tokens{ |
28 |
ARG; |