Files
bun.sh/src
Claude Bot b511d93fe2 perf: Optimize three-pass strategy with fresh enumeration and early bailout
Improvements:
1. Reduced delay from 10ms to 500 microseconds (20x faster)
   - Still enough time for processes to handle SIGTERM
   - Much faster exit in the common case

2. Fresh child enumeration per pass
   - Don't keep stale PIDs around between passes
   - Each pass gets current state of process tree
   - Scoped blocks ensure immediate cleanup of allocations

3. Early bailout optimization
   - Return immediately if no children found in Pass 1
   - Skip Pass 2 if all children exited from SIGTERM
   - Skip Pass 3 if all children exited from SIGSTOP

Benefits:
- Faster: 500us delay instead of 10ms
- More accurate: Fresh child list each pass
- More efficient: Skip unnecessary passes when children exit early
- Cleaner memory: Scoped blocks free resources immediately
2025-10-07 00:24:34 +00:00
..
2025-10-06 15:10:27 +00:00
2025-07-21 13:26:47 -07:00
2025-09-30 05:26:32 -07:00
2025-09-27 00:45:29 -07:00
2025-10-04 02:17:55 -07:00
2025-09-09 20:41:10 -07:00
2025-09-30 05:26:32 -07:00
2025-07-21 13:26:47 -07:00
2025-10-04 02:17:55 -07:00
2025-07-29 19:35:46 -07:00
2025-09-30 05:26:32 -07:00
2025-10-03 17:13:22 -07:00
2025-07-21 13:26:47 -07:00
2025-10-04 02:17:55 -07:00
2025-10-06 15:01:06 +00:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-08-27 06:39:11 -07:00
2025-09-09 20:41:10 -07:00
2025-09-30 05:26:32 -07:00
2025-09-11 23:29:53 -07:00
2025-09-09 20:41:10 -07:00
2025-07-21 13:26:47 -07:00
2025-10-03 17:13:22 -07:00
2025-07-21 13:26:47 -07:00
2025-09-09 20:41:10 -07:00
2025-07-21 13:26:47 -07:00
2025-10-06 15:01:06 +00:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00