Slow SMB Browsing with MacOS X

Ever since Apple dropped Samba and went with their own SMB stack in MacOS X the browsing performance suffered badly for SMB shares on a Debian server. After much searching the solution that finally worked was to set the following in smb.conf:

socket options = IPTOS_LOWDELAY