mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

The current suggestion for users shells out to `brew --prefix` three separate times, which has a non-zero overhead (as per quick benchmark below, approx 20ms per invocation). By making a minor change, the first invocation can be stored in a local variable to reduce shell startup time. ``` $ hyperfine --warmup=3 'brew --prefix' Benchmark #1: brew --prefix Time (mean ± σ): 21.3 ms ± 1.5 ms [User: 8.8 ms, System: 10.6 ms] Range (min … max): 20.3 ms … 37.0 ms 128 runs ```
Documentation
Users
Contributors
- How To Open A Pull Request (and get it merged)
- Formula Cookbook
- Acceptable Formulae
- Formulae Versions
- Node for Formula Authors
- Python for Formula Authors
- Migrating A Formula To A Tap
- Rename A Formula
- Building Against Non-Homebrew Dependencies
- How To Create (And Maintain) A Tap
- Brew Test Bot
- Prose Style Guidelines
Maintainers
- New Maintainer Checklist
- Maintainers: Avoiding Burnout
- Maintainer Guidelines
- Brew Test Bot For Maintainers
- Common Issues for Maintainers
- Releases