CodeX
Published in

CodeX

CODEX

Profiling Your Code

How to Identify CPU and Memory Inefficiencies

To take your code to the next level, you need to ensure that your solutions are as efficient as possible! But how do we identify the bottlenecks in speed or memory usage? We profile!

Image by Tianyi Ma on Unsplash

CPU Usage and Timing

With a Custom Decorator

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aren Carpenter

Aren Carpenter

290 Followers

Data Scientist. Exploring the intersection between AI and Healthcare/Oncology. Flatiron alum.