messages: Remove unused.
pkg_check: Improve readability.
main: Remove support for -F.
Has been deprecated and silently ignored for 6 years. If anyone is
still using it under the false impression that it does anything then
it's about time to start correcting them.
order: Simplify reverse list insertion.
impact: Inline update_level_if_higher().
Only one caller, not worth it.
actions: Drop unnecessary verb_flag().
fsops: Simplify read_repos().
preferred: Inline the only trunc_str() caller.
tools: Simplify strreplace().
preferred: Use strlcpy.
tools: Simplify check_yesno().
actions: Add action_list_* for simpler management.
pkg_str: Fix memory leak in find_preferred_pkg().
summary: Use a prepared statement for package INSERTs.
Compile the INSERT once per import and bind values per package, rather
than building and parsing SQL text for every package. Shaves another
1.5 million or so instructions off from "pkgin update".
summary: Use prepared statements for per-row inserts.
Shaves around a million instructions off 'pkgin update'.
autoremove: Use the depends hash.
preferred: Early exit is_preferred() if empty.
summary: Pre-compute column length.
Avoids snprintf() inside the hot path. Measured to reduce about 2.5
million instructions from "pkgin update" on my macOS, and drop runtime
from 2.2 seconds to 1.3.
pkglist: Use hash slot in pkg_is_installed().
pkg_str: Avoid leak in pkgname_from_pattern().
pkg_check: Simplify pkg_conflicts() loop.
tools: Add and consolidate humanize_size().
pkglist: Add and use consolidated pattern_pkglist().
depends: Use consolidated new_pattern_depend().
pkglist: Simplify setfmt().
actions: Simplify switch cases.
autoremove: Use consolidated show_keep_list() helper.
impact: Add add_deps_to_impact() helper.
Consolidate identical code in two places.
pkglist: Consolidate a bunch of pkglist handling.
actions: Implement action_list_sorted() helper.
Avoids duplicated code for sorting different ACTION_* types.