Repository navigation
Release v0.5.0
Async City Baby (Holiday Edition)
- Complete overhaul to server code to fully support libusb's async api. I believe this implementation is as optimized as I can get it.
- Switched to reusable direct allocated bytebuffers. C code writes directly to the buffer with 'zero-copy'.
Overview of async implementation:
| Thread1 | Thread2 | Thread3 |
|---|---|---|
| Reads incoming data | Waits for a finished transfer and processes it | Waits for reply in queue |
| ⬇️ | ⬇️ | ⬇️ |
| Submits transfer | Adds reply to queue | Sends out reply |
| ⬇️ | ⬇️ | ⬇️ |
| Immediately returns | Immediately returns to process next finished transfer | Immediately returns |
| 🔁 | 🔁 | 🔁 |
Notes 📓
Webcam still not working. I'm thinking the issue might not be speed but maybe accuracy. I'm going to have to debug the data I'm sending out deeper.
- Release 0.5.0 by @techphenom in #8
Full Changelog: v0.4.0...v0.5.0