The libraries you’re using might be running more threads than you realize—and that can mean slower execution.