Commit Graph

4 Commits

Author SHA1 Message Date
KrisKennaway f55e878b8e
Mark nogil functions as noexcept to avoid warning from newer cython (#15) 2023-10-29 14:43:55 +00:00
KrisKennaway f8fbd768a5
Optimize dither_dhr.dither_image performance by about 2x (#12)
- avoid passing around a float[::1] memoryview across function barriers, this seems to require reference counting which has a large overhead
- inline some functions
- C division
- float instead of double
2023-02-25 21:21:43 +00:00
kris e71352490d Add comments 2022-07-16 22:00:42 +01:00
kris ae89682dab Split out common utility functions into a shared module 2021-11-26 12:26:46 +00:00