"libuv: What's a Unicorn Velociraptor?"
summary
libuv runs on many OSes with tiered support and uses a thread pool size = 4 by default for offloading fs and DNS work, not everything is threaded. libuv has 300+ C tests and adds JavaScript tests into Node.js CI to stop regressions when releases roll. DNS supports both system resolver and c-ares and now uses partitioned DNS workers to prevent fs starvation. copyFile has sync, promise and callback paths that funnel into UV_FS_work or into native OS copy functions on macOS and Windows.
AI-written summary · about
chapters (17)
- 0:00Start
- 1:52Overview Platform abstraction library
- 2:56Platform Support
- 4:49Features
- 5:55High Level Architecture
- 7:32Handles
- 8:33Requests
- 11:05Event Loop
- 16:10libuv and Node.js: Onion Architecture
- 17:02A Note on Testing
- 19:13Tracing a Thread Pool Operation
- 19:54Node's JavaScript Standard Library
- 21:00Invoking binding.copyFile()
- 23:18Entering libuv
- 24:17Posting Work
- 25:21macos Copy File Implementation
- 25:55Windows Copy File Implementation
