Daily Dose of Data Science

Share this post

A Major Limitation of NumPy Which Most Users Aren't Aware Of

www.blog.dailydoseofds.com

Discover more from Daily Dose of Data Science

High-quality insights on Data Science and Python, along with best practices β€” shared daily. Get a 550+ Page Data Science PDF Guide and 450+ Practice Questions Notebook, FREE.
Over 36,000 subscribers
Continue reading
Sign in

A Major Limitation of NumPy Which Most Users Aren't Aware Of

..and here's how to address it.

Jun 17, 2023
15
Share this post

A Major Limitation of NumPy Which Most Users Aren't Aware Of

www.blog.dailydoseofds.com
Share

NumPy undoubtedly offers

  • extremely fast, and

  • optimized operations.

Yet, it DOES NOT support parallelism.

This provides further scope for run-time improvement.

Numexpr is a fast evaluator for NumPy expression, which uses:

  • multi-threading

  • just-in-time compilation

The speedup offered by Numexpr is evident from the image above.

Depending upon the complexity of the expression, the speed-ups can range from 0.95x and 20x.

Read more: Documentation.

πŸ‘‰ Over to you: What are some other ways to speedup NumPy computation?

Thanks for reading Daily Dose of Data Science! Subscribe for free to learn something new and insightful about Python and Data Science every day. Also, get a Free Data Science PDF (350+ pages) with 250+ tips.


πŸ‘‰ Read what others are saying about this post on LinkedIn and Twitter.

πŸ‘‰ Tell the world what makes this newsletter special for you by leaving a review here :)

Review Daily Dose of Data Science

πŸ‘‰ If you liked this post, don’t forget to leave a like ❀️. It helps more people discover this newsletter on Substack and tells me that you appreciate reading these daily insights. The button is located towards the bottom of this email.

πŸ‘‰ If you love reading this newsletter, feel free to share it with friends!

Share Daily Dose of Data Science

πŸ‘‰ Sponsor the Daily Dose of Data Science Newsletter. More info here: Sponsorship details.


Find the code for my tips here:Β GitHub.

I like to explore, experiment and write about data science concepts and tools. You can read my articles on Medium. Also, you can connect with me on LinkedIn and Twitter.

15
Share this post

A Major Limitation of NumPy Which Most Users Aren't Aware Of

www.blog.dailydoseofds.com
Share
Previous
Next
Comments
Top
New
Community

No posts

Ready for more?

Β© 2023 Avi Chawla
Privacy βˆ™ Terms βˆ™ Collection notice
Start WritingGet the app
Substack is the home for great writing