sysctl -w vm.swappiness=0
to make permanent, set vm.swappiness=0 in /etc/sysctl.conf
Though for a desktop machine, disabling swap probably won't help improve performance
post 3.5 it does actually hard-disable, but setting swappiness to 1 gives the same behaviour as swappiness=0 in < 3.5