I`m using the command like the follows to add a route table, which contains 5000 lines, but it could take minutes to run!
nmcli connection modify enp1s0 +ipv4.routes "192.168.122.0/24 10.10.10.1"
On the contrary, the ip route add 192.168.122.0/24 via 10.10.10.1
could be much faster, only about ten seconds.
By the way, the system I`m using is ubuntu 22.04.