In the wg.conf monitor service a resync can be issued instead of a full restart.
ngoduykhanh/wireguard-ui#316
Pseudocode
if interface_checksum_matches; then
sync config
else
restart interface
fi
awk script
$1 ~ /^\[Interface\]$/ { out=1; }; out != 1 { next; }; $1 ~ /^[^\[#]/ { print; next}; { exit }