Compute max record length faster.