Repository navigation
What's Changed
Task scheduling and synchronization:
- Work-stealing made production-ready, with comprehensive tests by @lihuiba in #1598
- Global pooled coroutine stack allocator by @Coldwings in #1599
- Golang-like
go/channel/select, and SingleFlight by @Coldwings in #1108 and #1097 - WorkPool: configurable
ring_sizevia FlexRingChannel and configurable queue yield parameters, plus full usability outside a photon environment by @taoting1234 @MJY-HUST @lihuiba in #1314 and #1721 - New and optimized lock primitives: queued spinlock (reimplemented on
thread_local, no photon vcpu dependency),qrwlockfor read-heavy workloads, contending mutex, and a faster spin lock by @lihuiba @Coldwings @EricHuangqx in #962 and #1131 and #992 and #1126 - Scheduler fairness: a standby queue to avoid sleep-queue starvation,
thread_yield_to()made less prone to starving threads, and bettertry_gotorunq placement by @lihuiba @Coldwings in #979 and #982 and #1316
Event-driven I/O:
- io_uring cascading engine for I/O, with immediate reaping after eager submit by @lihuiba in #848 and #1624
- FUSE adaptor: sync and io_uring session-loop modes, compatibility with the FUSE low-level interface, and a splice API for all loop modes by @haolianglh in #835 and #850
Networking and HTTP:
- Per-client dialers with injectable dialer / resolver by @Coldwings in #1572
- Socket pool refactored, and connection idle expiration exposed for pooled connections by @lihuiba @Moonpuck in #1484 and #1734
- Proxy support: per-operation proxy URL, plus userinfo in URL and proxy authentication by @pakkah @WaberZhuang in #1201 and #1183
- TLS: ALPN client/server options and custom CA certificate support for TLSContext by @Coldwings @Moonpuck in #1088 and #1529
- HTTP/2 frame and stream layer (
H2Connection/H2Stream, both client- and server-initiated) with a Huffman codec by @lihuiba in #1524 and #1509 — standalone layer, not yet wired intohttp::Client/http::Server - Simple WebSocket implementation by @Coldwings in #1109
- KCP binding by @lihuiba in #1541
- Bounds against wire-driven allocation: maximum RPC request size, maximum WebSocket frame size, and HTTP client retry backoff capped at 5 seconds by @jfeng18 in #1307 and #1309 and #1250
- vDMA: transportable shared-memory buffers with initiator/target roles by @hapulus798 in #801
Storage:
- Three-tier LRU cache (active → inactive → idle), with an idle LRUContainer for full file cache and the rwlock moved from
LruEntrytoFileStoreto cut memory usage by @xiaoyang-hhh in #1209 and #1182 and #1149 FileCachePoolis now thread-safe for multi-vCPU access, with optional async cache-dir scan at init, eviction triggered by disk free space on the write path, manual eviction by filename, and astoreCacheTTLUsecsparameter by @xiaoyang-hhh in #1555 and #1590 and #1548 and #1137- extfs maintenance:
resize_extfsandfsck_extfsinterfaces, customizable buffer size, and a unique on-disk signature by @OsentryO @WaberZhuang in #1276 and #1660 and #1584 - Virtual block device servers: NBD, TCMU, ublk, vhost-user and VDUSE backends behind a common
IBlkDevice/BlkConfiginterface, withvduse-cliandvhost-user-clitools by @lihuiba in #1668 - SPDK integration: bdev backend, NVMe wrapper for local SSDs, and a bdev module with RPC server by @hapulus798 in #838 and #845 and #860
Ecosystem (OSS):
- Mini OSS SDK independent of libcurl, with upload/download via customized body writer/reader by @zhenjiaseu @fangqianan in #1082 and #1516
- Batch get objects, and reading multiple byte ranges of an object in one GET by @zhenjiaseu @han-ian in #1112 and #1641
- Client options: custom headers on all requests, path-style requests, and
ip_versionbacked by a client-owned resolver by @zhenjiaseu @Moonpuck in #1312 and #1625 and #1640 - API surface additions: bucket create/delete with crc64 outputs for copy ops,
start-afterforlist_objects, ETag returned by PutObject / AppendObject / CompleteMultipart, and per-request diagnostics via an optionalRequestTraceout-param by @zhenjiaseu @chenqi97 @Moonpuck @han-ian in #1606 and #1138 and #1123 and #1710
Common utilities:
- Delegate family: multi-delegate groups to a same object,
TempDelegate, andDelegate<>support inthread_create()/thread_usleep_defer()/wait_defer()by @Coldwings @lihuiba in #981 and #1234 and #1168 - Lock-free queues: flexible-size
LockfreeQueue, user-definable MPMC mark size, tuned MPMCRingQueue layout, isolated unpublished reservations in WorkPool consumers, and a lock-free park stack for RingChannel notification by @Coldwings @MJY-HUST in #905 and #1690 and #1649 - New utilities: xxhash32, string-keyed
set/unordered_set, andcommon/intrusive_list.h(moved fromthread/list.h) by @lihuiba in #1232 and #1207 - simple_dom:
.inisupport, document node order preserved via an index, a type system, and unmodified (unpatched) parser dependencies by @lihuiba @Coldwings in #1692 - simple_dom no longer depends on a patched rapidjson; downstream builds carrying
rapidjson.patchneed updating by @Coldwings in #1692 - Checksum rework: compile-time generated tables, a full
combine/series/trimfamily for crc32c and crc64ecma (hardware and software paths), and simplified SIMD by @Coldwings @lihuiba in #1160 and #1111 and #1118 and #1147
Logging:
- alog: colored output with integer color codes, optimized async output,
thread_localstate, buffer hidden inside__log__(), always-logged items, revised startup log rotation, andLOG_ERROR_RETURN/LOG_ERRNO_RETURNable to enforce setting errno by @Coldwings @lihuiba @EricHuangqx @yyaoling in #824 and #1175 and #1189 and #983
Platform, build and CI:
- CMake modernized around a declarative module registry, with new options
PHOTON_ENABLE_BLK,PHOTON_ENABLE_KCP,PHOTON_ENABLE_RESIZEandPHOTON_ENABLE_SPDKby @Coldwings in #1563 - x86-64 baseline raised to v2 (AVX-512 disabled on macOS) and clang 21 compatibility by @lihuiba in #1526 and #1187
- CI: GCC 13/14 jobs, migration to ARC runners on an ACS cluster, liburing 2.15, macos-15 images, and a header-independence check for every public header by @Coldwings @lihuiba in #1101 and #1525 and #1729
- Backport automation: auto-PR action with an asymmetric anti-loop mechanism, bugfix label gate, conflict handling,
need-backportsplit, and cascading prefix stripping by @Coldwings in #1301 and #1410 and #1630 - Documentation: new module docs (
common,delegate_callback,rpc, ecosystem overview) indexed fromAGENTS.md, plus the PPoPP paper, cache architecture and CRC notes by @lihuiba in #1236 and #1159
New Contributors
- @chewi made their first contribution in #904
- @MJY-HUST made their first contribution in #968
- @whyer6 made their first contribution in #1035
- @han-ian made their first contribution in #1089
- @jfeng18 made their first contribution in #1248
- @OsentryO made their first contribution in #1276
- @taoting1234 made their first contribution in #1314
- @juliusl made their first contribution in #1647
- @XinlongZHANG-Bob made their first contribution in #1663
- @dajiaohuang made their first contribution in #1711
Full Changelog: v0.9.0...v0.10.0