*! version 0.5.0 03nov2026 program define feppml, eclass version 15.0 if replay() { syntax [, *] _get_diopts diopts options, `options' if `"`options'"' != "" { di as error `"option `options' not allowed"' exit 198 } if `"`e(cmd)'"' != "feppml" error 301 _fereg_display, `diopts' exit } local host_processors = c(processors) local quiet_prefix if !c(noisily) local quiet_prefix quietly // Parsing and private output preparation can activate Stata's MP workers, // which then compete with the native team: below one million observations // the complete public call stays serial in the host; Rust owns its team. // From one million observations the frontend's per-row passes on one // processor cost more than that competition, so the caller's count stays. local serial_host = `host_processors' > 1 & _N < 1000000 nobreak { if `serial_host' quietly set processors 1 capture noisily break `quiet_prefix' _fereg_ppml `0' local fit_rc = _rc if `serial_host' quietly set processors `host_processors' } if `fit_rc' exit `fit_rc' end