Tagged articles
Cython
19 articles · Page 1 of 1
This article explains the purpose and typical usage of various Python file extensions—including .py, .ipynb, .pyi, .pyc, .pyw, and .pyx—provides code examples, demonstrates how to write type‑hint files, and compares pure Python with Cython for performance‑critical tasks.
Cythonfile extensionsperformance
0 likes · 7 min read

This article examines why Python is slower than compiled languages and presents five practical solutions—PyPy, Pyston, Nuitka, Cython, and Numba—detailing their mechanisms, compatibility, and trade‑offs for developers seeking to boost Python performance.
CythonPyPyPython
0 likes · 6 min read

This article introduces the most common Python file extensions—including .py, .ipynb, .pyi, .pyc, .pyd, .pyw, and .pyx—explains their purposes, provides example code, and demonstrates how Cython (.pyx) can significantly improve performance for compute‑intensive tasks.
CythonPythonfile extensions
0 likes · 6 min read


21CTOJun 17, 2024 · Fundamentals
At PyCon 2024, experts demonstrated how static typing, Cython compilation, static‑linked C extensions, and sub‑interpreter architectures can dramatically accelerate Python code, reduce runtime overhead, and mitigate GIL limitations, offering practical pathways for faster, more scalable Python applications.
CythonGILoptimization
0 likes · 11 min read

This article explains why Python is praised for its readability, high‑level abstractions, extensive standard library, strong community support, and flexible performance‑boosting tools such as NumPy, Cython, and Numba, making it a versatile choice for scientific and general‑purpose programming.
CythonNumPyPython
0 likes · 28 min read

Cython 3.0 has been officially released, offering a more Pythonic syntax, better C/C++ integration, expanded pure‑Python mode, automatic NumPy ufunc generation, Unicode identifiers, and preliminary support for Python's limited API, making it faster, safer, and easier to use.
CythonPure Python modecompilation
0 likes · 4 min read


21CTOJul 20, 2023 · Fundamentals
Cython 3.0, announced by co‑developer Dr. Stefan Behnel after nearly five years, drops Python 2 support, aligns fully with Python 3 semantics, improves exception handling and C/C++ interoperability, and resolves compatibility issues that affected tools like the AWS CLI.
C extensionsCythonPython
0 likes · 4 min read

This article surveys a range of Python acceleration tools—from NumPy, SciPy, and Pandas for efficient array operations to JIT compilers like PyPy and Pyston, GPU libraries such as PyCUDA, and C‑extension generators like Cython—explaining how each can dramatically speed up single‑processor or parallel code while balancing memory usage.
CythonGPUnumba
0 likes · 6 min read


21CTONov 9, 2022 · Fundamentals
An overview of Python’s primary interpreter implementations—including CPython, Jython, IronPython, PyPy, and Cython—highlights their origins, execution models, compatibility, performance characteristics, and unique advantages, helping developers choose the right runtime for their specific needs.
CPythonCythonInterpreters
0 likes · 4 min read


21CTOJan 18, 2022 · Fundamentals
On January 18, 2022 the Python Software Foundation released Python 3.10, 3.9, and a preview of 3.11, detailing performance gains, Windows installer issues, and a critical Cython‑related memory leak fixed in the upcoming 3.10.3 release.
CPythonCythonMemory Leak
0 likes · 5 min read

Although Python is slower than C or Java for CPU‑intensive tasks, several projects such as PyPy, Pyston, Nuitka, Cython, and Numba offer practical ways to boost its performance, each with its own trade‑offs and compatibility considerations.
CythonPyPyPython
0 likes · 6 min read

Although Python runs slower than C or Java, this article explains why it is slower, outlines two general approaches to speed it up, and reviews five concrete projects—PyPy, Pyston, Nuitka, Cython, and Numba—that aim to boost Python performance on various hardware.
CythonNuitkaPyston
0 likes · 7 min read

Although Python is slower than C, Java, or JavaScript for CPU‑intensive tasks, several projects—including PyPy, Pyston, Nuitka, Cython, and Numba—offer distinct approaches such as JIT compilation, LLVM back‑ends, or C conversion to significantly improve Python’s runtime performance.
CythonJITLLVM
0 likes · 5 min read

This article explains various methods to protect Python source code—including distributing compiled .pyc files, applying code obfuscation, packaging with py2exe, and compiling with Cython—detailing their concepts, implementation steps, advantages, and limitations.
CythonPythoncode protection
0 likes · 10 min read

This article explains how to dramatically speed up Python programs by improving algorithms, choosing the right data structures, optimizing loops, leveraging lazy evaluation, using efficient string operations, list comprehensions, profiling tools, and advanced accelerators such as PyPy and Cython.
Code ProfilingCythonPyPy
0 likes · 23 min read

This article explains how Cython—a Python superset that compiles to C—can accelerate natural‑language‑processing tasks, showcases the NeuralCoref v3.0 project, provides profiling tips, demonstrates Python‑to‑Cython code transformations, and presents benchmark results showing up to a hundred‑fold speedup.
CythonPythonspaCy
0 likes · 16 min read

This article explains how to accelerate Python‑based natural language processing pipelines by up to a hundred times using Cython, covering profiling, code conversion, integration with spaCy, and practical Jupyter Notebook examples for fast, production‑ready NLP modules.
CythonspaCy
0 likes · 14 min read

This article walks through turning a pure‑Python great‑circle distance function into a Cython‑accelerated version, compares timings, shows how to replace Python's math calls with C library functions, and demonstrates how pure C code can achieve up to a five‑fold performance boost.
C extensionsCythonPython
0 likes · 9 min read

This article explores why Python’s execution speed lags behind compiled languages, presents two main optimization strategies, and details five practical approaches—including PyPy, Pyston, Nuitka, Cython, and Numba—to significantly improve Python performance on the same hardware.
CythonNuitkaPyPy
0 likes · 7 min read
