commit c7020aea6347e93b38e2af1508c6c0f5f1348b38 from: Stefan Sperling date: Thu Nov 30 14:49:49 2017 UTC increase buffer sizes for blob diffing commit - 365fb436324b33e0a9cb7c2608d81bac879ff93a commit + c7020aea6347e93b38e2af1508c6c0f5f1348b38 blob - b684c9de163b20f5e43023240de23e74bb617937 blob + 8d0f4cb9022423eeaa4f5894047ed4cc7c939325 --- lib/diff.c +++ lib/diff.c @@ -160,7 +160,7 @@ diff_added_blob(struct got_object_id *id, struct got_r err = got_object_open(&obj, repo, id); if (err) return err; - err = got_object_blob_open(&blob, repo, obj, 512); + err = got_object_blob_open(&blob, repo, obj, 8192); if (err != NULL) return err; @@ -195,13 +195,13 @@ diff_modified_blob(struct got_object_id *id1, struct g goto done; } - err = got_object_blob_open(&blob1, repo, obj1, 512); + err = got_object_blob_open(&blob1, repo, obj1, 8192); if (err != NULL) { err = got_error(GOT_ERR_FILE_OPEN); goto done; } - err = got_object_blob_open(&blob2, repo, obj2, 512); + err = got_object_blob_open(&blob2, repo, obj2, 8192); if (err != NULL) { err = got_error(GOT_ERR_FILE_OPEN); goto done; @@ -227,7 +227,7 @@ diff_deleted_blob(struct got_object_id *id, struct got err = got_object_open(&obj, repo, id); if (err) return err; - err = got_object_blob_open(&blob, repo, obj, 512); + err = got_object_blob_open(&blob, repo, obj, 8192); if (err != NULL) return err;