thread sorting unit performance