Throwing Ruby Out the Window
summary
A profiling study of Ruby 1.9.3 on Windows identified File.expand_path as a major startup hotspot; the author built Phoenix, a proof‑of‑concept library that calls the Win32 API directly (bypassing POSIX emulation) to do path expansion. Running 10,000 iterations showed Phoenix dramatically reduces Rails startup time on Windows (cutting ~5.2s to less than half), and a patch to Ruby’s loader allows toggling this experimental change.
AI-written summary · about
