Merge: parser: do not allocate a reduction table for each parser
authorJean Privat <jean@pryen.org>
Tue, 20 Oct 2015 00:23:44 +0000 (20:23 -0400)
committerJean Privat <jean@pryen.org>
Tue, 20 Oct 2015 00:23:44 +0000 (20:23 -0400)
commit369219133a9030888122ea3a2b02f2dd4c4375f8
tree9428f8489ba309ac8b34c1269931cfe01034e96e
parent5273ee85fe96c0c6fb9887cd5482624fc677847b
parentb8907b4654d8e03d6d058083a3061d47a0ce46a8
Merge: parser: do not allocate a reduction table for each parser

This optimize multiple Parser allocation, for instance nitunit or nitdoc that need to deal with each nitunit in the documentation.

usertime for `./nitdoc ../lib/core/`:

* before: 0m2.184s
* after: 0m1.788s (-18.1%)

Pull-Request: #1770
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>