optimization-demo
github.com · Open source · Quiet
Example of speeding up Python with a C++ extension
- Learning & reference
- Open source
- C++
- Day-7 check
- Day-30 check
- python
- performance
- benchmark
- cpp
- optimization
- python performance
- c extension example
- python optimization
- websocket handshake benchmar
- Stars
- 48
- Forks
- 1
- Open issues
- 0
- Last commit
- Found
- 3 years ago
GitHub figures as of . They are context, not a ranking.
optimization-demo is a repository showing how to speed up Python code by writing a C++ extension. Its main example generates WebSocket keys at a high rate, so readers can compare before and after. It suits Python developers looking for a worked example.
Repository description on GitHub: “:zap: Optimizing Python code by implementing a C++ extension”
What it does
- Shows a Python function that computes WebSocket Sec-WebSocket-Accept keys
- Compares a pure Python version with a C++ extension version
- Uses the WebSocket opening handshake from RFC 6455 as the benchmark task
Good for
- Compare Python and C++ extension speed on a small task
- Learn the steps for writing a Python C++ extension
Suits: Python developers looking for a worked example of C++ speedups.
Worth knowing: A demo project with no real world benefits beyond the methodology it shows
What you can try
Read the README on GitHub and install from source.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw optimization-demo on , when cprogrammer1994 posted it to Show HN. GitHub listed no published releases for szabolcsdombi/optimization-demo when checked , so the project may ship straight from its main branch. The repository was created .
Day-7 and day-30 updates
Day 7 no new release
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
- Show HN discussion at check time: 83 points, 70 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 no new release
- No tagged release was published in the first 30 days after it was found (GitHub release dates).
- Show HN discussion at check time: 83 points, 70 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: szabolcsdombi/optimization-demo
- Found: cprogrammer1994 posted it to Show HN. Show HN
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Quick answers
- When was optimization-demo released?
- No dated release record is available. Kip found it on Show HN on 3 Jul 2023.
- Is optimization-demo open source?
- Its source is public on GitHub at szabolcsdombi/optimization-demo under the MIT licence.
- Is optimization-demo free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is optimization-demo still maintained?
- It has had no commit or release for over a year as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | szabolcsdombi/optimization-demo REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-36569736. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.