Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 835 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 835 Bytes

ttst-blaze

This is the code from my blog post “Speeding up Python programs with Rust: a practical example”.

Contents

  • ttst.py the original ttst script, copied from this commit
  • ttst_blaze.py the new script as described in the blog post, differs only in the cogitate() function
  • chooser/ Rust code

Usage

The original ttst.py is ready to use, refer to python ttst.py --help and its documentation for more information.

To run the updated ttst_blaze.py you must first compile the Rust library:

$ cd chooser
$ cargo build --release
$ mv target/release/libchooser.so ../chooser.so