jonathanhogg / flitter

A functional programming language and declarative system for describing 2D and 3D visuals
https://flitter.readthedocs.io
BSD 2-Clause "Simplified" License
37 stars 1 forks source link

Convert canvas to Cython #1

Closed jonathanhogg closed 1 year ago

jonathanhogg commented 1 year ago

The current canvas drawing code could almost certainly be quicker if it was implemented in Cython. This would also allow the helpers.pyx code to be folder into it. It'll need the 3.10 match/case code changed to equivalent if statements.

The enums are a bit of a mess as well, so it might be worth sorting those out too – I suspect that just using dictionaries would be easier.

jonathanhogg commented 1 year ago

Done!