Iptables v1.8.4 (legacy) Performance Problem inside a container?

After adding some rules like:

sudo iptables -A INPUT -i lo -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 443 -j ACCEPT
sudo iptables -A INPUT -j DROP

in the containter (+ ip6tables rules), running iptables -L becomes very very slow.
Using ufw before never posed this kind of issue.

Is there a recommended firewall to be run in LXCs?

add -n should faster:
iptables -nL