This repository was archived by the owner on Jul 15, 2021. It is now read-only.
Commit ae29000
committed
Massive reduction in bundled parser size.
Reduced the size of the parser from 416.89 kB to 86.7 kB
(about 20% of the original size) by switching pegjs option
--optimize from speed to size and modifying my fork of
pegjs to allow rule descriptions to be looked up by rule
index instead of by rule name as the optimize size mode
required.
Running time for the entire suite of specs is still around
1 second, so the tracer branch is now performing as fast
as master and is also a fraction of the file size as well.
Refs #161 parent 001165e commit ae29000
File tree
4 files changed
+14
-26
lines changed- demo/js
- src
4 files changed
+14
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments