Skip to content
Snippets Groups Projects
  • Jack Nagel's avatar
    ba968516
    Always load net/https before referencing related constants · ba968516
    Jack Nagel authored
    I put this require inside the method body, because eager-loading
    net/https is slow compared to the rest of Homebrew, and utils.rb is
    loaded for each `brew` invocation.
    
    It's probably worth breaking up global.rb a bit, to reduce the amount of
    code we are loading unnecessarily, but hopefully also to make inter-file
    dependencies a bit more obvious.
    
    Fixes Homebrew/homebrew#21617.
    ba968516
    History
    Always load net/https before referencing related constants
    Jack Nagel authored
    I put this require inside the method body, because eager-loading
    net/https is slow compared to the rest of Homebrew, and utils.rb is
    loaded for each `brew` invocation.
    
    It's probably worth breaking up global.rb a bit, to reduce the amount of
    code we are loading unnecessarily, but hopefully also to make inter-file
    dependencies a bit more obvious.
    
    Fixes Homebrew/homebrew#21617.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.