Transform the following Python code to achieve the same result with better performance
def classify_number_bigger_5(number):
    result = []
    for n in number:
        if n > 5:
            result.append(1)
        else:
            result.append(0)
    return result
def classify_number_bigger_5(number):
    return [1 if n > 5 else 0 for n in number]