diff: use BytesIO over bytes for performance reason

4 jobs for !40 with topic/default/commitDiff in 1 minute and 34 seconds (queued for 3 seconds)
latest merge request