Another (perhaps bigger) contributor to /var's slowness is that it's a sort of internal alias for /set -l (you can see that if you alias /set itself; /var calls that alias). mirc does that on few occasions, eg this is the reason why $iif() is notoriously slow, compared to /if - /else.