Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: await Clear Filter

SQLite async connection pool for high-performance

aiosqlitepool aiosqlitepool is a high-performance connection pool for asyncio SQLite applications. By managing a pool of reusable database connections, it eliminates connection overhead and delivers significant performance gains. Important: aiosqlitepool is not a SQLite database driver. It's a performance-boosting layer that works with an asyncio driver like aiosqlite, not as a replacement for it. aiosqlitepool in three points: Eliminates connection overhead : It avoids repeated database co

A Mental Model for C++ Coroutine

C++ coroutine is not a library that is ready to go (e.g. std::vector ). It is not even a trait (think of Rust’s Future trait) that library writers or users can implement (or the compiler generates for you in the case of Rust). C++ coroutine is a specification that defines a set of customization points that library writers implement in order to get a functional coroutine. A function supports two operations - call and return . A coroutine (in any language) is a generalization of a function. It su

Iroh: A library to establish direct connection between peers

less net work for networks What is iroh? Iroh gives you an API for dialing by public key. You say “connect to that phone”, iroh will find & maintain the fastest connection for you, regardless of where it is. The fastest route is a direct connection, so if necessary, iroh tries to hole-punch. Should this fail, it can fall back to an open ecosystem of public relay servers. To ensure these connections are as fast as possible, we continuously measure iroh. Built on QUIC Iroh uses Quinn to estab