mossprescott / pynand

Nand2Tetris in Python.
Other
12 stars 4 forks source link

Tweak codegen for 50% speed-up #22

Closed mossprescott closed 4 years ago

mossprescott commented 4 years ago

Up to about 435 kHz now, which is tantalizingly close to what it needs to be for proper responsiveness.

Running out of obvious local optimizations now.

Things I also tried that didn't work:

I'll write an issue for the idea of avoiding ALU eval when it won't be used.