Ben Chuanlong Du's Blog

It is never too late to learn.

Set in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Hash in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Profile Performance of Python Applications

Tips

  1. cProfile (implemented in C) is preferred over profile (implemented in Python).

  2. The profiler modules (cProfile and profile) and tools based on them (e.g., %prun and %%prun for notebook) are designed to provide an execution profile for a given program, not for benchmarking purposes (for that, there is time

Parsing Command-line Arguments in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips and Traps

There are 2 popular crates clap and structopt (based on clap) for this purpose. I personally prefer clap .