Improve pagure's performance when render very large commit
The previous commit improved the situation for large diffs but for large
commits having a lot of small diffs, this did not work. In this commit
we are checking the size of the whole commit and then deciding whether
to display it or not.
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>