I have another update for reflector that I just figured out.
You will want to edit the following file and add details to make sure that every time it updates the mirror list, it is grabbing them from your country and I grab 10 and sort them by rate. This will ensure that your mirrorlist isn’t getting populated with links from other countries which can slow down you downloads.
sudo nano /etc/xdg/reflector/reflector.conf
This is what the file looks like.
# Reflector configuration file for the systemd service.
#
# Empty lines and lines beginning with "#" are ignored. All other lines should
# contain valid reflector command-line arguments. The lines are parsed with
# Python's shlex modules so standard shell syntax should work. All arguments are
# collected into a single argument list.
#
# See "reflector --help" for details.
# Recommended Options
# Set the output path where the mirrorlist will be saved (--save).
--save /etc/pacman.d/mirrorlist
# Select the transfer protocol (--protocol).
--protocol https
# Select the country (--country).
# Consult the list of available countries with "reflector --list-countries" and
# select the countries nearest to you or the ones that you trust. For example:
--country US
# Use only the most recently synchronized mirrors (--latest).
--latest 10
# Sort the mirrors by synchronization time (--sort).
--sort rate
Here are the different flag options that you can change or add to this file. I found this on google by searching arch linux reflector flags.
Filtering Options (What to find)
--country <CODE/Name>: Selects mirrors from specific countries (e.g., US, France,Germany). Use {Link: reflector --list-countries https://archlinux.org/mirrors/status/}, for a full list.
--protocol <http|https>: Filters for HTTP or HTTPS mirrors.
--age <hours>: Only includes mirrors synced within the last X hours (e.g., --age 12).
--delay <hours>: Limits to mirrors with a reported sync delay of X hours or less (e.g.,
--delay 0.25 for 15 mins).
--latest <N>: Limits results to the top N newest mirrors.
Sorting Options (How to order)
--sort rate: Sorts by download speed (requires testing, can be slow).
--sort age: Sorts by most recently synced.
--sort score: Sorts by overall score.
--sort country: Sorts by country, useful with multiple countries.
Output Options (Where to put it)
--save <path>: Writes the filtered/sorted list to a file (e.g., /etc/pacman.d/mirrorlist).
--verbose or -v: Shows detailed progress and mirror info.