going back to continuous line_width adaptation, added time measurements
some speed ups