- Learning Python
- Fabrizio Romano
- 238字
- 2021-07-30 09:41:53
What are the drawbacks?
Probably, the only drawback that one could find in Python, which is not due to personal preferences, is the execution speed. Typically, Python is slower than its compiled brothers. The standard implementation of Python produces, when you run an application, a compiled version of the source code called byte code (with the extension .pyc
), which is then run by the Python interpreter. The advantage of this approach is portability, which we pay for with a slowdown due to the fact that Python is not compiled down to machine level as are other languages.
However, Python speed is rarely a problem today, hence its wide use regardless of this suboptimal feature. What happens is that in real life, hardware cost is no longer a problem, and usually it's easy enough to gain speed by parallelizing tasks. When it comes to number crunching though, one can switch to faster Python implementations, such as PyPy, which provides an average 7-fold speedup by implementing advanced compilation techniques (check http://pypy.org/ for reference).
When doing data science, you'll most likely find that the libraries that you use with Python, such as Pandas and Numpy, achieve native speed due to the way they are implemented.
If that wasn't a good enough argument, you can always consider that Python is driving the backend of services such as Spotify and Instagram, where performance is a concern. Nonetheless, Python does its job perfectly adequately.
- Clojure Programming Cookbook
- LabVIEW 2018 虛擬儀器程序設(shè)計
- Apache Spark 2 for Beginners
- 編程珠璣(續(xù))
- Java Web程序設(shè)計
- Scratch 3游戲與人工智能編程完全自學(xué)教程
- MATLAB定量決策五大類問題
- Visual Basic程序設(shè)計實踐教程
- Learning ArcGIS for Desktop
- 移動界面(Web/App)Photoshop UI設(shè)計十全大補(bǔ)
- 大數(shù)據(jù)分析與應(yīng)用實戰(zhàn):統(tǒng)計機(jī)器學(xué)習(xí)之?dāng)?shù)據(jù)導(dǎo)向編程
- Getting Started with Python and Raspberry Pi
- Hands-On Nuxt.js Web Development
- BeagleBone Robotic Projects(Second Edition)
- PrimeFaces Blueprints