[cvs-nhc98] patch applied (hat): Various minor performance tweaks supplied by Thomas Nordin, yielding