From python script to executable with cython
Recently I saw that you could convert python scripts into executable with the
help of cython
, and I had to try that.
Recently I saw that you could convert python scripts into executable with the
help of cython
, and I had to try that.
As an engineer, I write a lot of small python programs as tools for specific tasks. Generally, these are not large programs. Most of them are below 100 lines of code (“LOC”, as measured by cloc), although there are a few in the 300−400 LOC range.
In this article, I will present some observations about these, and draw some conclusion from them.
Since Python 3.11.0 came out recently, I wanted to compare its speed with 3.9.15 on some of my own “benchmark” programs.
Both versions are in the default configuration as built by the FreeBSD ports system.
TL;DR Python 3.11 yielded speed improvements in the order of 25% in my tests.
In this article we will discuss a faster and more efficient way to get only the first item from a view object in Python.
Intrigued by this question, I investigated the structure of an OpenSSH ECDSA public key.
Redirecting standard output of the Python script on ms-windows can cause strange crashes because of encoding differences.
This is the fifth in a series of articles that covers analyzing and improving
performance bottlenecks in Python scripts.
The program ent_without_numpy.py
is a lot slower than the version that
uses numpy
.
The performance of ent_without_numpy.py
is the topic of this article.
This is the fourth in a series of articles that covers analyzing and improving
performance bottlenecks in Python scripts.
The performance of stl2ps
is the topic of this article.
This is the third in a series of articles that covers analyzing and improving
performance bottlenecks in Python scripts.
The performance of stl2ps
is the topic of this article.
This is the second in a series of articles that covers analyzing and improving
performance bottlenecks in Python scripts.
In this second article the performance of stlinfo
is looked at.