Skip to content

EnricoMiccoli/ttst-blaze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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