improve performance when showing tabs in the tabline (#326).