• Sean McGivern's avatar
    Only generate repository push email once · 5f27e26b
    Sean McGivern authored
    The repository push email can be very expensive to generate, especially
    with syntax-highlighted diffs. Instead of generating the email for each
    recipient, generate one email object and reset the Message-Id and To
    headers for each recipient. (Cloning would also be expensive in the case
    of large emails, although probably not as bad as generating from
    scratch.)
    5f27e26b
emails_on_push_worker.rb 2.34 KB