Huge performance optimization.

The log gets repainted only 4 times per-second.