UCL-RITS / pi_examples

A lot of ways to run the same way of calculating pi. Some of them are dumb.
Creative Commons Zero v1.0 Universal
29 stars 8 forks source link

Add cython version(s) that use cython annotations, decorators, etc #5

Closed jmetz closed 6 years ago

jmetz commented 6 years ago

The current cython version (https://github.com/UCL-RITS/pi_examples/commit/ac92dd582fed52a1271fd91b3b1d86ccbc59da82) uses no actual cython specific code - it simply passes pure python code through cython.

This is known to provide minimal (typically up to 10%) speed ups.

Suggest use of e.g. type declarations, if appropriate use of cmath, removal of GIL to add real usefulness of Cython.