You Can Now Profile Python Using Arm Forge (arm.com)
Python "is often described as being slow when it comes to performance... But is that truly the case?" writes Patrick Wohlschlegel, Arm's senior product manager for infrastructure and high-performance computing tools.
Slashdot reader igor.sfiligoi writes: Effectively profiling Python has always been a pain. Arm recently announced that their Arm Forge is now able to profile both Python and compiled code.
It's available for any hardware architecture, Wohlschlegel writes, adding that developers "typically assume that most of the execution time is spent in compiled, optimized C/C++ or Fortran libraries (e.g. NumPy) which are called from Python..."
"How confident are you that your application is not wasting your precious computing resources for the wrong reasons?"
Slashdot reader igor.sfiligoi writes: Effectively profiling Python has always been a pain. Arm recently announced that their Arm Forge is now able to profile both Python and compiled code.
It's available for any hardware architecture, Wohlschlegel writes, adding that developers "typically assume that most of the execution time is spent in compiled, optimized C/C++ or Fortran libraries (e.g. NumPy) which are called from Python..."
"How confident are you that your application is not wasting your precious computing resources for the wrong reasons?"
You're supposed to mark the sponsored content....
Python "is often described as being slow when it comes to performance... But is that truly the case?"
Yes, in fact yes, it is. That is not why we use Python.
"First they came for the slanderers and i said nothing."
Python programs that I wrote 15 years ago are still running in production.
The "Java rewrite" that my manager wanted to do never got done.
In fact, a lot of the production Java code that existed back then couldn't be maintained and got reimplemented in Python.
Since the new servers are ~20 times faster, speed never really mattered anyway.
Python is full of "free" optimizations that most newbys are not even aware of.
When you learn to do things that "Pythonic" way, it really does put the clunky Java hack-jobs to shame.
Here another take on it:
https://www.pythonforengineers...
Is it that slow? pypy seems pretty quick to me. Do programs start up that frequently these days outside of util scripts? Even then you can follow xargs lead and do more per execution.
Why UNIX?
Upon entering the job market recently, I discovered that no one wants Perl programmers anymore, it's all Python.
After learning the differences in Python (and learning that I'd need to learn both v2 and v3), I started hunting for some of the tools that I use for Perl, like a profiler.
I couldn't find anything that could touch Devel::NYTProf. (Demo of that here) Hopefully this can??
I replace ALL my PowerShell scripts on my widows servers with Python ones. Why it performed 10 times better!
The Truth is a Virus!!!