/explore
|
You are here |
tenthousandmeters.com | ||
| | | | |
dygalo.dev
Sometimes we need to extend existing Python projects with other languages to solve performance issues or to include some functionality already written in another language. In this chapter, we will create a full-featured Python integration for a Rust crate we built in the previous article. As the primary goal, I want to focus on a pleasant end-user experience and share tips on improving the usability and debuggability of the resulting library. |
|
| | | | | ||
| | | | |
doughellmann.com
[AI summary] A technical analysis reveals that using the dictionary constructor dict() instead of the literal syntax {} in CPython 2.7 results in significantly higher performance costs due to extra function call overhead and intermediate memory allocations. |
|
| | | | | ||
| | | | |
ashvardanian.com
Python's not the fastest language out there. Developers often use tools like Boost.Python and SWIG to wrap faster native C/C++ code for Python. PyBind11 is the most popular tool for the job not the quickest. NanoBind offers improvements, but when speed really matters, we turn to pure CPython C API bindings. With StringZilla, I started with PyBind11 but switched to CPython to reduce latency. The switch did demand more coding effort, moving from modern C++17 to more basic C99, but the result is a 5x lower ... |
|
| | | | | ||
| | | | |
alexwlchan.net
I wrote a Python script to help me get timestamps in a consistent format in my JSON. |
|
| | | |||