niti: cache the frame in a local variable
authorJean Privat <jean@pryen.org>
Thu, 19 Jul 2012 01:46:34 +0000 (21:46 -0400)
committerJean Privat <jean@pryen.org>
Fri, 10 Aug 2012 01:05:54 +0000 (21:05 -0400)
commit0297a8e4858638f80324c63349ef4d9e8fa8b8a0
treeddad23672863ecb9b35b217bb9957c6171cb4a35
parent08f680ff2360cbe690556c106fd4c1274ef7a248
niti: cache the frame in a local variable

expr and stmt are the most called methods.
Storing a result of a non trivial call makes sense.

Figures:

$ time ./nit test_parser.nit test_parser.nit > /dev/null
Before: user 0m8.221s
After: user 0m7.924s

Signed-off-by: Jean Privat <jean@pryen.org>
src/naive_interpreter.nit