Skip to content

wrighters.io

Thoughts on python, data science, and related tools.

  • About
  • Articles
  • Privacy Policy

Tag: performance

Profiling Python code with line_profiler

February 28, 2021February 28, 2021 ~ Matt Wright ~ Leave a comment

Once we have debugged, working, readable (and hopefully testable) code, it may become important to examine it more closely and try to improve the code's performance. Before we can make any progress in determining if our changes are an improvement, we need to measure the current performance and see where it is spending its time. … Continue reading Profiling Python code with line_profiler

Profiling Python with cProfile, and a speedup tip

February 18, 2021February 19, 2021 ~ Matt Wright ~ Leave a comment

We would love for our Python programs to run as fast as possible, but figuring out how to speed things up requires gathering information about the current state of our code and knowing techniques to speed things up. First and foremost, we need to know where our program is spending its time, and what is … Continue reading Profiling Python with cProfile, and a speedup tip

Pages

  • About
  • Articles
  • Privacy Policy

Categories

  • Finance
  • Python
  • Software

Recent Posts

  • Profiling Python code with line_profiler
  • Profiling Python with cProfile, and a speedup tip
  • Views, Copies, and that annoying SettingWithCopyWarning
  • Selection in pandas using query
  • Selecting in Pandas using where and mask
Proudly powered by WordPress ~ Theme: Penscratch 2 by WordPress.com.