summaryrefslogtreecommitdiffstatshomepage
path: root/teensy/servo.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-04-14 13:23:50 +0100
committerDamien George <damien.p.george@gmail.com>2016-04-14 13:49:23 +0100
commit0c1de1cdeea98e55710d27f7926da717086ac0fc (patch)
treed9bc058d9e8108e00b4df482e258da652db08a4b /teensy/servo.c
parent0a400a63330e41ac47f5c8d0cf2efbdaf9c96c6f (diff)
downloadmicropython-0c1de1cdeea98e55710d27f7926da717086ac0fc.tar.gz
micropython-0c1de1cdeea98e55710d27f7926da717086ac0fc.zip
py: Simplify "and" action within parser by making ident-rules explicit.
Most grammar rules can optimise to the identity if they only have a single argument, saving a lot of RAM building the parse tree. Previous to this patch, whether a given grammar rule could be optimised was defined (mostly implicitly) by a complicated set of logic rules. With this patch the definition is always specified explicitly by using "and_ident" in the rule definition in the grammar. This simplifies the logic of the parser, making it a bit smaller and faster. RAM usage in unaffected.
Diffstat (limited to 'teensy/servo.c')
0 files changed, 0 insertions, 0 deletions