Improve perf by declaring definitions as arrays
Merge pull request #51 from joelfillmore/master

Fixes performance problems described in issue #45