Codon: high-performance Python compiler

Codon: high-performance Python compiler

Codon is a high-performance Python implementation that compiles to native machine code without any runtime overhead. Typical speedups over vanilla Python are on the order of 10-100x or more, on a single thread. Codon’s performance is typically on par with (and sometimes better than) that of C/C++. Unlike Python, Codon supports native multithreading, which can lead to speedups many times higher still.

Think of Codon as Python reimagined for static, ahead-of-time compilation, built from the ground up with best possible performance in mind.

Huge chances?

I know I know the Observer Pattern. I just wanted to be sure what was the best practice in Python. I found this:

Risky Implementations: If the pattern is not implemented carefully, there are huge chances that you will end up with large complexity code.

From https://www.geeksforgeeks.org/observer-method-python-design-patterns/

With all the complex code out there having “risky implementations” the observer pattern is one of the mildest.

Using CSV File as data storage and access

Thanks adamchainz!

You can use “CSV” table storage in (at least) these database backends:

However these will be slow though. Changes to CSV based tables require a lot of parsing and re-saving.

It’s probably better to import the CSV into a table with an optimized storage engine, and export it again later. django-import-export can help with that: https://pypi.org/project/django-import-export/

Source: Using CSV File as data storage and access