You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cc7f1d96eb
This speeds up the benchmark suite execution by 0.18%, which may just be a measurement error. (Standrad statistic tests would tell more, but I don't want to mess with them now.) The code is little bit nicer this way though. Going further and avoiding |apply| seems to slow thigs down a bit, possibly because multiple array accesses. I may try improved version without array accesses (where Action passes the Sequence variable names to save the results into) sometime later. Detailed results (benchmark suite totals): --------------------------------- Test # Before After --------------------------------- 1 29.08 kB/s 28.91 kB/s 2 28.72 kB/s 28.75 kB/s 3 28.78 kB/s 28.88 kB/s 4 28.57 kB/s 28.90 kB/s 5 28.84 kB/s 28.81 kB/s --------------------------------- Average 28.80 kB/s 28.85 kB/s --------------------------------- Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2 |
15 years ago | |
---|---|---|
.. | ||
compiler.js | 15 years ago | |
metagrammar.js | 15 years ago | |
metagrammar.pegjs | 15 years ago |