tamsui: optimizations that really help responsiveness

Change-Id: I8ee272e881f6ac43ae7b47e9a7dfb4cd55dd226b