Speedup max_w2 rescaling: Only rescale to max_w2 if sum(w^2) > 2*max_w2.
Make profiling time window shorter (100ms instead of 1s) -> more responsive.