Star RestPHP
Already starred? Check a public GitHub username below. This is not a GitHub login; only the username is remembered on this browser.
Appearance
Already starred? Check a public GitHub username below. This is not a GitHub login; only the username is remembered on this browser.
One of the foundational design choices of RestPHP is the complete elimination of host runtime garbage collection.
Modern persistent PHP application servers such as FrankenPHP and RoadRunner are written in Go. While Go provides high concurrency through goroutines, its memory management relies on a concurrent Stop-The-World (STW) Garbage Collector.
When running high-throughput web workloads:
zend_gc_collect_cycles) to clean up circular references in userland variables.During Go GC cycles, CPU cores are diverted to mark-and-sweep phases, and thread scheduling is briefly paused. This causes:
Rust does not have a runtime garbage collector: